From: Denton Liu Date: Sun, 5 May 2019 16:07:07 +0000 (-0400) Subject: revisions.txt: mention ~ form X-Git-Tag: v2.22.0-rc0~6^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6a12e99a52d2d01ea84e5040a87e0dac0a4b0b35 revisions.txt: mention ~ form In revisions.txt, the '^' form is mentioned but the '~' 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt index 6f2f83f8a2..b5d9d1b381 100644 --- a/Documentation/revisions.txt +++ b/Documentation/revisions.txt @@ -139,7 +139,9 @@ thing no matter the case. '{caret}0' means the commit itself and is used when '' is the object name of a tag object that refers to a commit object. -'{tilde}', e.g. 'master{tilde}3':: +'{tilde}[]', 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}' to a revision parameter means the commit object that is the th generation ancestor of the named commit object, following only the first parents. I.e. '{tilde}3' is