Re: Question about git-cherry and the rev list it's using
- From
- Francis Moreau <francis.moro@gmail.com>
- Date
- May 13, 2011, 07:02 UTC
- Message-ID
- <BANLkTi=d+gDhgnmOzUDfHhGJP76JuLHJ2Q@mail.gmail.com>
- In-Reply-To
- <BANLkTi=qRbpBG_PDPjO_TVEe+nWqrFQ28w@mail.gmail.com>
On Fri, May 13, 2011 at 8:54 AM, Francis Moreau <francis.moro@gmail.com> wrote:
Show 22 quoted lines
> [ resending to the mailing list too ] > > On Thu, May 12, 2011 at 8:47 AM, Michael J Gruber > <git@drmicha.warpmail.net> wrote: >> Francis Moreau venit, vidit, dixit 11.05.2011 18:11: >>> Hello, >>> >>> I'm using "git cherry old master base" to see if all commits between >>> master and base have been applied in my 'old' branch. >>> >>> So I expect that git cherry is using a list of commits given by : "git >>> rev-list --no-merges base..master". >> >> Not really. >> >> For each commit in "--no-merges old..master ^base" (i.e. "--no-merges >> master ^old ^base"), "git cherry" checks whether there is a patch >> equivalent commit in "--no-merges master..old", and outputs it with + or -. >> > > oh you're right, I missed the case when old has been merged in master. >
BTW, can't it be convenient for users if git-cherry also displays the sha1 of the commits which have been merged upstream (the ones with the '-' sign) ?
Thanks
-- Francis