From: Alex Riesen Date: Wed, 15 Nov 2006 21:52:25 +0000 (+0100) Subject: git-blame: fix rev parameter handling. X-Git-Tag: v1.4.4.2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bee4e408c097a4f0c4a091f13dacabe7c766025;p=git.git 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 --- diff --git a/builtin-blame.c b/builtin-blame.c index 53fed4501..dc3ffeaff 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -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);