{"thread":{"id":"11581","subject":"[RFH] how to know if a cherry-picked patch has been applied already?","startedAt":"2008-01-11T10:47:37Z","lastAt":"2008-01-11T12:14:00Z","messageCount":3,"participants":["Michal Vitecek","Johannes Schindelin","Peter Baumann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"65004","messageId":"20080111104737.GA7332@mageo.cz","threadId":"11581","inReplyTo":null,"subject":"[RFH] how to know if a cherry-picked patch has been applied already?","fromName":"Michal Vitecek","fromEmail":"fuf@mageo.cz","sentAt":"2008-01-11T10:47:37Z","receivedAt":"2008-01-11T10:47:37Z","isPatch":false,"sender":{"key":"fuf@mageo.cz","avatar":null},"body":" Hello everyone,\n\n I'm managing a git repository where I include my and my co-workers'\n work. With some co-workers I can use 'git merge' but with some I use\n 'git cherry-pick'. However, cherry-picking leads to problems because a\n new commit ID is generated and I must remember which patches I have\n cherry-picked to my tree. Is there any easy way to tell which patches\n have and have not been applied?\n\n    Thanks,\n            Michal\n-- \n\t\tfuf\t\t(fuf@mageo.cz)\n"},{"id":"65010","messageId":"alpine.LSU.1.00.0801111211260.31053@racer.site","threadId":"11581","inReplyTo":"20080111104737.GA7332@mageo.cz","subject":"Re: [RFH] how to know if a cherry-picked patch has been applied already?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-01-11T12:12:43Z","receivedAt":"2008-01-11T12:12:43Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Fri, 11 Jan 2008, Michal Vitecek wrote:\n\n> Is there any easy way to tell which patches have and have not been \n> applied?\n\nIf the patches are not too different, \"git log --cherry-pick a...b\" (note \nthe three dots instead of two) shows only those patches in b that are not \nyet in a.\n\nHth,\nDscho\n"},{"id":"65011","messageId":"20080111121400.GD21695@xp.machine.xx","threadId":"11581","inReplyTo":"20080111104737.GA7332@mageo.cz","subject":"Re: [RFH] how to know if a cherry-picked patch has been applied already?","fromName":"Peter Baumann","fromEmail":"waste.manager@gmx.de","sentAt":"2008-01-11T12:14:00Z","receivedAt":"2008-01-11T12:14:00Z","isPatch":false,"sender":{"key":"waste.manager@gmx.de","avatar":null},"body":"On Fri, Jan 11, 2008 at 11:47:37AM +0100, Michal Vitecek wrote:\n>  Hello everyone,\n> \n>  I'm managing a git repository where I include my and my co-workers'\n>  work. With some co-workers I can use 'git merge' but with some I use\n>  'git cherry-pick'. However, cherry-picking leads to problems because a\n>  new commit ID is generated and I must remember which patches I have\n>  cherry-picked to my tree. Is there any easy way to tell which patches\n>  have and have not been applied?\n> \n>     Thanks,\n>             Michal\n\nHave a look at the manpage of git-cherry, which will tell you if you\nalready applied a commit/patch.\n\n-Peter\n"}]}