diff options
author | Santi Béjar <sbejar@gmail.com> | 2008-02-25 12:43:33 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-26 05:59:20 +0300 |
commit | 518120e3487a00148f8001454f1e76e484442a22 (patch) | |
tree | 1af7db66d8c13f49b46a87cb4205a8777729c166 /t/t6120-describe.sh | |
parent | 99d8ea2c5ce6fc0b06fe8a43e7c0c108ddad853b (diff) |
git-describe: --long shows the object name even for a tagged commit
This is useful when you want to see parts of the commit object name
in "describe" output, even when the commit in question happens to be
a tagged version. Instead of just emitting the tag name, it will
describe such a commit as v1.2-0-deadbeef (0th commit since tag v1.2
that points at object deadbeef....).
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6120-describe.sh')
-rwxr-xr-x | t/t6120-describe.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh index ae8ee11183..a7557bdc79 100755 --- a/t/t6120-describe.sh +++ b/t/t6120-describe.sh @@ -94,4 +94,6 @@ check_describe D-* --tags HEAD^^ check_describe A-* --tags HEAD^^2 check_describe B --tags HEAD^^2^ +check_describe B-0-* --long HEAD^^2^ + test_done |