diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-03-02 08:51:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-03 00:52:17 -0800 |
commit | da2478dbb000436b79e813ba7f243d6042f26e66 (patch) | |
tree | 795780a338f1e4ad737083f012cf870ef246157a /exec_cmd.c | |
parent | 34cd62eb91600109378c8121c1fecd924a9af177 (diff) | |
download | git-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 'exec_cmd.c')
0 files changed, 0 insertions, 0 deletions