diff options
author | Junio C Hamano <junkio@cox.net> | 2006-01-26 17:02:07 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-28 00:09:39 -0800 |
commit | 62a604ba1c8f1ebcb135039ab04c9ca6c96b67f4 (patch) | |
tree | 4eddfdcf86cd7ad24b3444b3812c193b244a82b0 /rev-parse.c | |
parent | 1dc4fb84b5914621cf59b6b508ad7c9c86c61fa4 (diff) | |
download | git-62a604ba1c8f1ebcb135039ab04c9ca6c96b67f4.tar.gz |
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>
Diffstat (limited to 'rev-parse.c')
-rw-r--r-- | rev-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rev-parse.c b/rev-parse.c index 8bf316eedd..a1aa86398a 100644 --- a/rev-parse.c +++ b/rev-parse.c @@ -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; |