Re: how to list commits on branch since last merge
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 8, 2011, 09:35 UTC
- Message-ID
- <AANLkTinOEutM92k4SUGEXbfTpzGcQitpW4CZbcQbg0R4@mail.gmail.com>
- In-Reply-To
- <4D75ED72.8030203@drmicha.warpmail.net>
On Tue, Mar 8, 2011 at 3:48 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 6 quoted lines
> Have you tried: > > git rev-list --ancestry-path --left-right foo...bar > > If the ">" commits are the ones that you want you only have to wait for > the "--right-only" option which is cooking in pu. And grep '^>' for now ;)
Ah. The rev-list man page entry on --ancestry-path only talks about using it with '..', so I didn't even try it with the symmetric diff operator ('...').
That said, seems it would be useful to have an easy way to get to the merge which has a merge-base as one of its parents. Maybe even a generic way to find all commits which have a particular parent. I think rev-list --parents | grep is the only way to do that today.
Thanks,
j.