aboutsummaryrefslogtreecommitdiff
path: root/builtin-tag.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-02 08:51:57 -0800
committerJunio C Hamano <gitster@pobox.com>2008-03-03 00:52:17 -0800
commitda2478dbb000436b79e813ba7f243d6042f26e66 (patch)
tree795780a338f1e4ad737083f012cf870ef246157a /builtin-tag.c
parent34cd62eb91600109378c8121c1fecd924a9af177 (diff)
downloadgit-da2478dbb000436b79e813ba7f243d6042f26e66.tar.gz
git-da2478dbb000436b79e813ba7f243d6042f26e66.tar.xz
describe --always: fall back to showing an abbreviated object name
Some callers may find it useful if "git describe" always gave back a string that can be used as a shorter name for a commit object, rather than checking its exit status (while squelching its error message, which could potentially talk about more grave errors that should not be squelched) and implementing a fallback themselves. This teaches describe/name-rev a new option, --always, to use an abbreviated object name when no tags or refs to use is found. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-tag.c')
0 files changed, 0 insertions, 0 deletions