how to list commits on branch since last merge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]