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>
Alex Riesen committed
Nov 15, 2006 at 22:52 UTC
6bee4e408c097a4f0c4a091f13dacabe7c766025
1 file changed
+1
builtin-blame.c
+1
@@ -1787,6 +1787,7 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
1787
/* Now we got rev and path. We do not want the path pruning
1788
* but we may want "bottom" processing.
1789
*/
1790
+ argv[unk++] = "--"; /* terminate the rev name */
1791
argv[unk] = NULL;
1792
1793
init_revisions(&revs, NULL);