Mention `git describe` in my Git notes.
authorW. Trevor King <wking@tremily.us>
Fri, 1 Jun 2012 17:19:02 +0000 (13:19 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 1 Jun 2012 17:19:02 +0000 (13:19 -0400)
posts/Git/notes.org

index d9dd58922b6c8ca34427f99c58099bfa15786034..73fee98d36f6fee559b4cd53942761642fa0f964 100644 (file)
@@ -794,7 +794,11 @@ previous commit
     : 33db5f4d9027a10e477ccf054b2c1ab94f74c85a tags/v0.99~940
 
 Now you are wiser, because you know that it happened 940 revisions
-before v0.99.
+before v0.99.  A similar command is =git describe=, which finds the
+latest tag in a commit's history and uses that to construct a name:
+
+    : $ git describe v1.0.5^2
+    : tags/v1.0.0-21-g975b31d
 
 ** List unmerged commits