Rename rev-parse --abbrev to --short.
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>
Junio C Hamano committed
Jan 26, 2006 at 17:02 UTC
62a604ba1c8f1ebcb135039ab04c9ca6c96b67f4
1 file changed
+2
-2
rev-parse.c
+2
-2
@@ -199,8 +199,8 @@ int main(int argc, char **argv)
199
verify = 1;
200
continue;
201
}
202
- if (!strcmp(arg, "--abbrev") ||
203
- !strncmp(arg, "--abbrev=", 9)) {
202
+ if (!strcmp(arg, "--short") ||
203
+ !strncmp(arg, "--short=", 9)) {
204
filter &= ~(DO_FLAGS|DO_NOREV);
205
verify = 1;
206
abbrev = DEFAULT_ABBREV;