Skip to contentSkip to conversation

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

RFH Michal Vitecek 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
		fuf		([email protected])
#1 lore raw
Quoted 11 lines · Michal Vitecek

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

#2 lore raw
In reply to Michal Vitecek

Hi,

Quoted 2 lines · Michal Vitecek

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