summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSanti Béjar <sbejar@gmail.com>2008-02-25 09:43:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-26 02:59:20 (GMT)
commit518120e3487a00148f8001454f1e76e484442a22 (patch)
tree1af7db66d8c13f49b46a87cb4205a8777729c166 /Documentation
parent99d8ea2c5ce6fc0b06fe8a43e7c0c108ddad853b (diff)
downloadgit-518120e3487a00148f8001454f1e76e484442a22.zip
git-518120e3487a00148f8001454f1e76e484442a22.tar.gz
git-518120e3487a00148f8001454f1e76e484442a22.tar.bz2
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 'Documentation')
-rw-r--r--Documentation/git-describe.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-describe.txt b/Documentation/git-describe.txt
index 1c3dfb4..270b808 100644
--- a/Documentation/git-describe.txt
+++ b/Documentation/git-describe.txt
@@ -51,6 +51,15 @@ OPTIONS
being employed to standard error. The tag name will still
be printed to standard out.
+--long::
+ Always output the long format (the tag, the number of commits
+ and the abbreviated commit name) even when it matches a tag.
+ 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....).
+
--match <pattern>::
Only consider tags matching the given pattern (can be used to avoid
leaking private tags made from the repository).