how to know if a cherry-picked patch has been applied already?
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])
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
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