Re: specifying one-side of a merge commit?
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Aug 12, 2010, 06:11 UTC
- Message-ID
- <20100812061111.GA25026@atjola.homenet>
- In-Reply-To
- <AANLkTi=mnO8+XM4Bcjneaq+ngUSFesvZ_TYMRyy=f43a@mail.gmail.com>
On 2010.08.12 13:11:52 +0800, Tay Ray Chuan 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.
Are you looking for $MERGE^2? See SPECIFYING REVISIONS in git-rev-parse(1).
Björn