rev-parse --symbolic-full-name: don't print '^' if SHA1 is not a ref
[gitweb.git] / Documentation / git-describe.txt
index 0742152b811e23ea304feb368c8d949785e2fdfb..5e88b6e79ad99aeb5aeaddd8be6c6c2dc5837941 100644 (file)
@@ -13,9 +13,10 @@ SYNOPSIS
 DESCRIPTION
 -----------
 The command finds the most recent tag that is reachable from a
-commit, and if the commit itself is pointed at by the tag, shows
-the tag.  Otherwise, it suffixes the tag name with the number of
-additional commits and the abbreviated object name of the commit.
+commit.  If the tag points to the commit, then only the tag is
+shown.  Otherwise, it suffixes the tag name with the number of
+additional commits on top of the tagged object and the
+abbreviated object name of the most recent commit.
 
 
 OPTIONS