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

Re: specifying one-side of a merge commit?

From
Elijah Newren <newren@gmail.com>
Date
Aug 12, 2010, 06:01 UTC
Message-ID
<AANLkTimT1w6o41Pu6zoLMRpv2PrtpkJ+6qLTQmQvR89d@mail.gmail.com>
In-Reply-To
<AANLkTi=mnO8+XM4Bcjneaq+ngUSFesvZ_TYMRyy=f43a@mail.gmail.com>
On Wed, Aug 11, 2010 at 11:11 PM, Tay Ray Chuan <rctay89@gmail.com> wrote:
Show 9 quoted lines
> Hi,
>
> I wonder how do you guys do this?
>
> So far, what I've come up with is this:
>
>  $ git rev-list $MERGE ^$MERGE^ | head -2 | tail -1
>
> I'm sure there's a better way.
$MERGE^2

(^1 means first parent of a commit, ^2 means second parent, etc. Plain '^' as suffix with no numeral implies ^1).

Previous: Tay Ray ChuanNext: Björn Steinbrink
Message 2 of 3 in “specifying one-side of a merge commit?”
  1. Tay Ray ChuanAug 12, 2010
  2. Elijah NewrenAug 12, 2010
  3. Björn SteinbrinkAug 12, 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.