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>maint
parent
1dc4fb84b5
commit
62a604ba1c
|
@ -199,8 +199,8 @@ int main(int argc, char **argv)
|
||||||
verify = 1;
|
verify = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!strcmp(arg, "--abbrev") ||
|
if (!strcmp(arg, "--short") ||
|
||||||
!strncmp(arg, "--abbrev=", 9)) {
|
!strncmp(arg, "--short=", 9)) {
|
||||||
filter &= ~(DO_FLAGS|DO_NOREV);
|
filter &= ~(DO_FLAGS|DO_NOREV);
|
||||||
verify = 1;
|
verify = 1;
|
||||||
abbrev = DEFAULT_ABBREV;
|
abbrev = DEFAULT_ABBREV;
|
||||||
|
|
Loading…
Reference in New Issue