specifying one-side of a merge commit?

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

specifying one-side of a merge commit?

From: Tay Ray Chuan <hidden>
Date: 2016-06-15 22:49:18

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.

-- 
Cheers,
Ray Chuan

Re: specifying one-side of a merge commit?

From: Elijah Newren <hidden>
Date: 2016-06-15 22:49:18

On Wed, Aug 11, 2010 at 11:11 PM, Tay Ray Chuan [off-list ref] wrote:
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).

Re: specifying one-side of a merge commit?

From: Björn Steinbrink <hidden>
Date: 2016-06-15 22:49:18

On 2010.08.12 13:11:52 +0800, Tay Ray Chuan wrote:
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.
Are you looking for $MERGE^2? See SPECIFYING REVISIONS in
git-rev-parse(1).

Björn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help