projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab3bb80
)
git-blame: fix rev parameter handling.
author
Alex Riesen
<raa.lkml@gmail.com>
Wed, 15 Nov 2006 21:52:25 +0000
(22:52 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 29 Nov 2006 18:33:25 +0000
(10:33 -0800)
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>
builtin-blame.c
patch
|
blob
|
history
diff --git
a/builtin-blame.c
b/builtin-blame.c
index 53fed4501ad9cb0d142bf516a743d1a487b0b04e..dc3ffeaff82377262f0ae47993cf0883b2552092 100644
(file)
--- 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);