Automatically delete branches containing accepted patches?

2017-08-27 Thread Lars Schneider
Hi, 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

Re: Automatically delete branches containing accepted patches?

2017-08-28 Thread Jacob Keller
On Sun, Aug 27, 2017 at 11:44 AM, Lars Schneider wrote: > Hi, > > 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 branch

Re: Automatically delete branches containing accepted patches?

2017-08-28 Thread Nicolas Morey-Chaisemartin
You could rebase your branches onto the upstream branch. Once all the patches are in, the SHA1 of the rebased branch is somewhere in the history of the upstream master. I use a set of scripts I've written to handle multiple branches: https://github.com/nmorey/git-topic-branches Using namesapce i

Re: Automatically delete branches containing accepted patches?

2017-08-28 Thread Stefan Beller
On Sun, Aug 27, 2017 at 11:44 AM, Lars Schneider wrote: > Hi, > > 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 branch

Re: Automatically delete branches containing accepted patches?

2017-08-28 Thread Jeff King
On Sun, Aug 27, 2017 at 08:44:06PM +0200, Lars Schneider wrote: > 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 bran