On Wed, Aug 11, 2010 at 11:11 PM, Tay Ray Chuan <rctay89@xxxxxxxxx> 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). -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html