From 6bee4e408c097a4f0c4a091f13dacabe7c766025 Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Wed, 15 Nov 2006 22:52:25 +0100 Subject: [PATCH] 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 --- builtin-blame.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2