git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] More precise description of 'git describe --abbrev'
@ 2009-10-29 21:38 Gisle Aas
  2009-10-29 22:47 ` Junio C Hamano
  2009-10-30 20:18 ` Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Gisle Aas @ 2009-10-29 21:38 UTC (permalink / raw)
  To: git; +Cc: gitster

Also make the examples show what 'git describe' actually outputs
currently.  I guess the default --abbrev value has been changed from 4
to 7 at some point.

Signed-off-by: Gisle Aas <gisle@aas.no>
---
 Documentation/git-describe.txt |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/Documentation/git-describe.txt b/Documentation/git-describe.txt
index b231dbb..743eb95 100644
--- a/Documentation/git-describe.txt
+++ b/Documentation/git-describe.txt
@@ -44,7 +44,9 @@ OPTIONS

 --abbrev=<n>::
 	Instead of using the default 7 hexadecimal digits as the
-	abbreviated object name, use <n> digits.
+	abbreviated object name, use <n> digits or as many digits
+	are needed to form a unique object name.  An <n> of 0
+	will suppress long format, only showing the closest tag.

 --candidates=<n>::
 	Instead of considering only the 10 most recent tags as
@@ -68,8 +70,8 @@ OPTIONS
 	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....).
+	describe such a commit as v1.2-0-gdeadbee (0th commit since tag v1.2
+	that points at object deadbee....).

 --match <pattern>::
 	Only consider tags matching the given pattern (can be used to avoid
@@ -106,10 +108,10 @@ With --all, the command can use branch heads as
references, so
 the output shows the reference path as well:

 	[torvalds@g5 git]$ git describe --all --abbrev=4 v1.0.5^2
-	tags/v1.0.0-21-g975b
+	tags/v1.0.0-21-g975b3

 	[torvalds@g5 git]$ git describe --all HEAD^
-	heads/lt/describe-7-g975b
+	heads/lt/describe-7-g975b31d

 With --abbrev set to 0, the command can be used to find the
 closest tagname without any suffix:
-- 
1.6.2.95.g934f7

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-11-04 22:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 21:38 [PATCH] More precise description of 'git describe --abbrev' Gisle Aas
2009-10-29 22:47 ` Junio C Hamano
2009-10-30  8:01   ` Gisle Aas
2009-10-30 19:00     ` Junio C Hamano
2009-10-30 19:27       ` Gisle Aas
2009-10-30 20:18 ` Andreas Schwab
2009-10-30 21:53   ` Junio C Hamano
2009-11-04 22:04     ` Gisle Aas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).