Re: Automatically delete branches containing accepted patches?
- Date: Mon, 28 Aug 2017 00:16:08 -0700
- From: Jacob Keller <jacob.keller@xxxxxxxxx>
- Subject: Re: Automatically delete branches containing accepted patches?
On Sun, Aug 27, 2017 at 11:44 AM, Lars Schneider
> I have lots of git/git branches and once in a while some patches make it
> into git/git master. If this happens I would like to delete my branch
> with the patch automatically. That's not easily possible as the hashes
> on my branches are, of course, not the same as the hashes on git/git.
> How do you deal with this situation? Do you manually delete your
> branches or do you have some clever script to share?
You might be able to use patch-ids and git-cherry, to see if similar
patches (those with identical patch ids) are upstream. The patch id is
only calculated from the diff I believe, so it's mostly stable at
least as long as the contents didn't need to be changed to apply
upstream. It's not 100% perfect, but it might help with what you're