git-blame: fix rev parameter handling.

We lacked "--" termination in the underlying init_revisions() call
which made it impossible to specify a revision that happens to
have the same name as an existing file.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Alex Riesen 2006-11-15 22:52:25 +01:00 коммит произвёл Junio C Hamano
Родитель ab3bb800b4
Коммит 6bee4e408c
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1787,6 +1787,7 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
/* Now we got rev and path. We do not want the path pruning
* but we may want "bottom" processing.
*/
argv[unk++] = "--"; /* terminate the rev name */
argv[unk] = NULL;
init_revisions(&revs, NULL);