author | Bert Wesarg <bert.wesarg@googlemail.com> | |
Mon, 13 Apr 2009 11:20:26 +0000 (13:20 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 13 Apr 2009 16:42:55 +0000 (09:42 -0700) | ||
commit | a45d34691ea624e93863e95706eeb1b1909304f3 | |
tree | ccb33f43a955be918d1771082e04a54599a23f0c | tree | snapshot |
parent | 2bb98169be7b0ac4f70815b4490904c652edae61 | commit | diff |
rev-parse: --abbrev-ref option to shorten ref name
This applies the shorten_unambiguous_ref function to the object name.
Default mode is controlled by core.warnAmbiguousRefs. Else it is given as
optional argument to --abbrev-ref={strict|loose}.
This should be faster than 'git for-each-ref --format="%(refname:short)" <ref>'
for single refs.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This applies the shorten_unambiguous_ref function to the object name.
Default mode is controlled by core.warnAmbiguousRefs. Else it is given as
optional argument to --abbrev-ref={strict|loose}.
This should be faster than 'git for-each-ref --format="%(refname:short)" <ref>'
for single refs.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt | diff | blob | history | |
builtin-rev-parse.c | diff | blob | history |