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

Re: [RFC PATCH 2/2] SubmittingPatches: Complete rewrite of section 0

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 19, 2010, 00:21 UTC
Message-ID
<20100419002113.GA14202@progeny.tock>
In-Reply-To
<1271620467-sup-7590@kytes>
Ramkumar Ramachandra wrote:
> This rewrite makes section 0 less verbose and more readable. It is
> intended to be squashed into the previous commit.
Nice.
> +To find the tip of a topic branch, run "git log --first-parent
> +master..pu" and look for the merge commit. The grandparent of this
> +commit is the tip of the topic branch.

The reader is not looking for the second-generation grand-parent foo~2 but the second parent foo^2, using terminology from git-rev-parse.1.

I guess the “second parent” term always involves this potential confusion. Luckily, the uninitiated reader can infer from the context that foo~2 is not the intended commit, so there is no need to resort to awkward phrases like “the second first-generation parent”.

Jonathan
diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 0b62b62..8db22ef 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -79,7 +79,7 @@ change is relevant to.
    rebase your work.
 
 To find the tip of a topic branch, run "git log --first-parent
-master..pu" and look for the merge commit. The grandparent of this
+master..pu" and look for the merge commit. The second parent of this
 commit is the tip of the topic branch.
 
 (1) Make separate commits for logically separate changes.
Previous: Ramkumar Ramachandra
Message 2 of 2 in “SubmittingPatches: Complete rewrite of section 0”
  1. 2/2 SubmittingPatches: Complete rewrite of section 0Ramkumar Ramachandra, Apr 18, 2010
  2. Jonathan NiederApr 19, 2010

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.