git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to list commits on branch since last merge
@ 2011-03-08  7:24 Jay Soffian
  2011-03-08  8:48 ` Michael J Gruber
  0 siblings, 1 reply; 13+ messages in thread
From: Jay Soffian @ 2011-03-08  7:24 UTC (permalink / raw)
  To: git

Given this history:

o---o---x---o---...    foo
 \       \
  o---o---m---o---...  bar

I want to list the commits on bar newer than merge m (the last merge
from foo). merge-base returns x.

I feel like I'm going to face-palm upon reply, but the only way I see
to do it is:

  $ git rev-list --ancestry-path $(git merge-base foo bar)..bar

Or by greping the output of rev-list --merges --parents foo..bar
looking for the merge base.

I must be missing something obvious, since this feels like it should
be a common operation. :-)

j.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-03-08 21:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08  7:24 how to list commits on branch since last merge Jay Soffian
2011-03-08  8:48 ` Michael J Gruber
2011-03-08  9:35   ` Jay Soffian
2011-03-08  9:39     ` Michael J Gruber
2011-03-08  9:43     ` Jay Soffian
2011-03-08  9:48       ` Michael J Gruber
2011-03-08 10:11         ` Jay Soffian
2011-03-08 10:25           ` Michael J Gruber
2011-03-08 17:12           ` Jeff King
2011-03-08 17:39             ` Jay Soffian
2011-03-08 18:05               ` Jeff King
2011-03-08 19:08             ` Andreas Schwab
2011-03-08 21:03               ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).