Skip to content

Commit

Permalink
Rename rev-parse --abbrev to --short.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 28, 2006
1 parent 1dc4fb8 commit 62a604b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rev-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ int main(int argc, char **argv)
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;
Expand Down

0 comments on commit 62a604b

Please sign in to comment.