Re: how to list commits on branch since last merge
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 8, 2011, 09:43 UTC
- Message-ID
- <AANLkTikK8Uc8=wKROYWWxZ_6OtQtqBmFCZN760M1LO+c@mail.gmail.com>
- In-Reply-To
- <AANLkTinOEutM92k4SUGEXbfTpzGcQitpW4CZbcQbg0R4@mail.gmail.com>
On Tue, Mar 8, 2011 at 4:35 AM, Jay Soffian <jaysoffian@gmail.com> wrote:
Show 12 quoted lines
> On Tue, Mar 8, 2011 at 3:48 AM, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
>> 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 ('...').And with the clue to use '...', it's easy:
$ git log --ancestry-path foo...bar ^foo
Still want an easy way for merge-base to report the merge which contains the merge-base. That will wait for another day.
j.