{"thread":{"id":"24714","subject":"specifying one-side of a merge commit?","startedAt":"2010-08-12T05:11:52Z","lastAt":"2010-08-12T06:11:11Z","messageCount":3,"participants":["Tay Ray Chuan","Elijah Newren","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"147867","messageId":"AANLkTi=mnO8+XM4Bcjneaq+ngUSFesvZ_TYMRyy=f43a@mail.gmail.com","threadId":"24714","inReplyTo":null,"subject":"specifying one-side of a merge commit?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-08-12T05:11:52Z","receivedAt":"2010-08-12T05:11:52Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nI wonder how do you guys do this?\n\nSo far, what I've come up with is this:\n\n  $ git rev-list $MERGE ^$MERGE^ | head -2 | tail -1\n\nI'm sure there's a better way.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"147873","messageId":"AANLkTimT1w6o41Pu6zoLMRpv2PrtpkJ+6qLTQmQvR89d@mail.gmail.com","threadId":"24714","inReplyTo":"AANLkTi=mnO8+XM4Bcjneaq+ngUSFesvZ_TYMRyy=f43a@mail.gmail.com","subject":"Re: specifying one-side of a merge commit?","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2010-08-12T06:01:21Z","receivedAt":"2010-08-12T06:01:21Z","isPatch":false,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"On Wed, Aug 11, 2010 at 11:11 PM, Tay Ray Chuan <rctay89@gmail.com> wrote:\n> Hi,\n>\n> I wonder how do you guys do this?\n>\n> So far, what I've come up with is this:\n>\n>  $ git rev-list $MERGE ^$MERGE^ | head -2 | tail -1\n>\n> I'm sure there's a better way.\n\n$MERGE^2\n\n(^1 means first parent of a commit, ^2 means second parent, etc.\nPlain '^' as suffix with no numeral implies ^1).\n"},{"id":"147874","messageId":"20100812061111.GA25026@atjola.homenet","threadId":"24714","inReplyTo":"AANLkTi=mnO8+XM4Bcjneaq+ngUSFesvZ_TYMRyy=f43a@mail.gmail.com","subject":"Re: specifying one-side of a merge commit?","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2010-08-12T06:11:11Z","receivedAt":"2010-08-12T06:11:11Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2010.08.12 13:11:52 +0800, Tay Ray Chuan wrote:\n> Hi,\n> \n> I wonder how do you guys do this?\n> \n> So far, what I've come up with is this:\n> \n>   $ git rev-list $MERGE ^$MERGE^ | head -2 | tail -1\n> \n> I'm sure there's a better way.\n\nAre you looking for $MERGE^2? See SPECIFYING REVISIONS in\ngit-rev-parse(1).\n\nBjörn\n"}]}