Skip to content

Commit 62a604b

Browse files
author
Junio C Hamano
committed
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>
1 parent 1dc4fb8 commit 62a604b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rev-parse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ int main(int argc, char **argv)
199199
verify = 1;
200200
continue;
201201
}
202-
if (!strcmp(arg, "--abbrev") ||
203-
!strncmp(arg, "--abbrev=", 9)) {
202+
if (!strcmp(arg, "--short") ||
203+
!strncmp(arg, "--short=", 9)) {
204204
filter &= ~(DO_FLAGS|DO_NOREV);
205205
verify = 1;
206206
abbrev = DEFAULT_ABBREV;

0 commit comments

Comments
 (0)