revisions.txt: mention <rev>~ form
authorDenton Liu <liu.denton@gmail.com>
Sun, 5 May 2019 16:07:07 +0000 (12:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2019 15:09:06 +0000 (00:09 +0900)
In revisions.txt, the '<rev>^' form is mentioned but the '<rev>~' form
is missing. Although both forms are essentially equivalent (they each
get the first parent of the specified revision), we should mention the
latter for completeness. Make this change.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/revisions.txt
index 6f2f83f8a29c07ee18cf48ecf5286b7aae990edc..b5d9d1b3810d7f5c7c6d52e0db4fa3e3c0bc8e64 100644 (file)
@@ -139,7 +139,9 @@ thing no matter the case.
   '<rev>{caret}0' means the commit itself and is used when '<rev>' is the
   object name of a tag object that refers to a commit object.
 
-'<rev>{tilde}<n>', e.g. 'master{tilde}3'::
+'<rev>{tilde}[<n>]', e.g. 'HEAD{tilde}, master{tilde}3'::
+  A suffix '{tilde}' to a revision parameter means the first parent of
+  that commit object.
   A suffix '{tilde}<n>' to a revision parameter means the commit
   object that is the <n>th generation ancestor of the named
   commit object, following only the first parents.  I.e. '<rev>{tilde}3' is