Re: Automatically delete branches containing accepted patches?
- From
Stefan Beller <sbeller@google.com>
- Date
- Aug 28, 2017, 17:32 UTC
- Message-ID
- <CAGZ79kYKJo4hcBY=nEi6z2gSH=W322W_h3_68bb0ZzF+L8JUig@mail.gmail.com>
- In-Reply-To
- <8AF4A868-628B-42AE-B75E-4DF19F7C7A89@gmail.com>
On Sun, Aug 27, 2017 at 11:44 AM, Lars Schneider <larsxschneider@gmail.com> wrote:
Show 9 quoted lines
> 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 you deal with this situation? Do you manually delete your > branches or do you have some clever script to share?
As soon as my patches are picked up, I rename my internal branch to be the same as its remote counter part. Usually I rebase my local branches on these remote branches, such that directly after queuing they are identical.
Usually I delete (local) branches as soon as I am either confident they go in as is or they are not very interesting to me. (e.g. a one off typo fix is developed on detached HEAD, sent out and I forget about it. In case a discussion ensues, I have to either take my patch or redo it. There is no local reminder of these things in the form of a branch)
Stefan
> Thanks, > Lars