threads / discuss / 11581

[RFH] how to know if a cherry-picked patch has been applied already?

Subject: [RFH] how to know if a cherry-picked patch has been applied already?

## tl;dr

3 messages between Jan 11, 2008 and Jan 11, 2008.

replies: 2people: 3as markdown or json

Michal Vitecek· Jan 11, 2008, 10:47 UTC · lore
 Hello everyone,
 I'm managing a git repository where I include my and my co-workers'
 work. With some co-workers I can use 'git merge' but with some I use
 'git cherry-pick'. However, cherry-picking leads to problems because a
 new commit ID is generated and I must remember which patches I have
 cherry-picked to my tree. Is there any easy way to tell which patches
 have and have not been applied?
    Thanks,
            Michal
-- 
		fuf		(fuf@mageo.cz)
Johannes Schindelin· Jan 11, 2008, 12:12 UTC · re: Michal Vitecek · lore

Re: [RFH] how to know if a cherry-picked patch has been applied already?

Hi,
On Fri, 11 Jan 2008, Michal Vitecek wrote:
> Is there any easy way to tell which patches have and have not been 
> applied?

If the patches are not too different, "git log --cherry-pick a...b" (note the three dots instead of two) shows only those patches in b that are not yet in a.

Hth, Dscho

Peter Baumann· Jan 11, 2008, 12:14 UTC · re: Michal Vitecek · lore

Re: [RFH] how to know if a cherry-picked patch has been applied already?

On Fri, Jan 11, 2008 at 11:47:37AM +0100, Michal Vitecek wrote:
Show 11 quoted lines
>  Hello everyone,
> 
>  I'm managing a git repository where I include my and my co-workers'
>  work. With some co-workers I can use 'git merge' but with some I use
>  'git cherry-pick'. However, cherry-picking leads to problems because a
>  new commit ID is generated and I must remember which patches I have
>  cherry-picked to my tree. Is there any easy way to tell which patches
>  have and have not been applied?
> 
>     Thanks,
>             Michal

Have a look at the manpage of git-cherry, which will tell you if you already applied a commit/patch.

-Peter

← back to recent threads