summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-03-02 08:51:57 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-03-03 00:52:17 -0800
commitda2478dbb000436b79e813ba7f243d6042f26e66 (patch)
tree795780a338f1e4ad737083f012cf870ef246157a /sha1_file.c
parentFix doc typos. (diff)
downloadtgif-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 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions