git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 3/4] revisions.txt: mention <rev>~ form

From
Denton Liu <liu.denton@gmail.com>
Date
May 5, 2019, 16:07 UTC
Message-ID
<1ba823024edddfb0e6ccb92647137eccf5d4c7d0.1557072286.git.liu.denton@gmail.com>
In-Reply-To
<cover.1557072286.git.liu.denton@gmail.com>

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>
---
 Documentation/revisions.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
index dd99770c47..a38ec7fb52 100644
--- a/Documentation/revisions.txt
+++ b/Documentation/revisions.txt
@@ -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
-- 
2.21.0.1049.geb646f7864
Previous: Denton LiuNext: Denton Liu
Message 4 of 8 in “cleanup revisions.txt”
  1. 0/4 cleanup revisions.txtDenton Liu, May 5, 2019
  2. 1/4 revisions.txt: change "rev" to "<rev>"Denton Liu, May 5, 2019
  3. 2/4 revisions.txt: mark optional rev arguments with []Denton Liu, May 5, 2019
  4. 3/4 revisions.txt: mention <rev>~ formDenton Liu, May 5, 2019
  5. 4/4 revisions.txt: remove ambibuity between <rev>:<path> and :<path>Denton Liu, May 5, 2019
  6. Denton LiuMay 5, 2019
  7. Denton LiuMay 7, 2019
  8. Junio C HamanoMay 7, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.