summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1dc4fb8)
raw | patch | inline | side by side (parent: 1dc4fb8)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 27 Jan 2006 01:02:07 +0000 (17:02 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 28 Jan 2006 08:09:39 +0000 (00:09 -0800) |
The usage of rev-parse to serve as a flag/option parser
for git-whatchanged and other commands have serious limitation
that the flags cannot be something that is supported by
rev-parse itself, and it cannot worked around easily. Since
this is rarely used "poor-man's describe", rename the option for
now as an easier workaround.
Signed-off-by: Junio C Hamano <junkio@cox.net>
for git-whatchanged and other commands have serious limitation
that the flags cannot be something that is supported by
rev-parse itself, and it cannot worked around easily. Since
this is rarely used "poor-man's describe", rename the option for
now as an easier workaround.
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-parse.c | patch | blob | history |
diff --git a/rev-parse.c b/rev-parse.c
index 8bf316eeddba1407927dd3fd1cd9b580f81d6840..a1aa86398a62559b8d04cde2a542edaee7290cf1 100644 (file)
--- a/rev-parse.c
+++ b/rev-parse.c
verify = 1;
continue;
}
- if (!strcmp(arg, "--abbrev") ||
- !strncmp(arg, "--abbrev=", 9)) {
+ if (!strcmp(arg, "--short") ||
+ !strncmp(arg, "--short=", 9)) {
filter &= ~(DO_FLAGS|DO_NOREV);
verify = 1;
abbrev = DEFAULT_ABBREV;