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

3 messages from 2008-01-11 to 2008-01-11. Participants: Michal Vitecek, Johannes Schindelin, Peter Baumann.
Thread: https://gitlist.dev/t/11581

## Michal Vitecek, 2008-01-11 10:47

Subject: [RFH] how to know if a cherry-picked patch has been applied already?
Message-ID: <20080111104737.GA7332@mageo.cz>
URL: https://gitlist.dev/e/20080111104737.GA7332%40mageo.cz

```
 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, 2008-01-11 12:12

Subject: Re: [RFH] how to know if a cherry-picked patch has been applied already?
Message-ID: <alpine.LSU.1.00.0801111211260.31053@racer.site>
URL: https://gitlist.dev/e/alpine.LSU.1.00.0801111211260.31053%40racer.site
In-Reply-To: <20080111104737.GA7332@mageo.cz>

```
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, 2008-01-11 12:14

Subject: Re: [RFH] how to know if a cherry-picked patch has been applied already?
Message-ID: <20080111121400.GD21695@xp.machine.xx>
URL: https://gitlist.dev/e/20080111121400.GD21695%40xp.machine.xx
In-Reply-To: <20080111104737.GA7332@mageo.cz>

```
On Fri, Jan 11, 2008 at 11:47:37AM +0100, Michal Vitecek wrote:
>  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

```
