Re: What's cooking in git.git (Jul 2026, #12)

Phillip Wood <[email protected]> Wed, 29 Jul 2026 16:14:46 +0100
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
On 27/07/2026 04:09, Junio C Hamano wrote:
> 
> * hn/branch-delete-merged (2026-07-25) 7 commits
>   - branch: add --dry-run for --delete-merged
>   - branch: add branch.<name>.deleteMerged opt-out
>   - branch: add --delete-merged <branch>
>   - branch: prepare delete_branches for a bulk caller
>   - branch: let delete_branches skip unmerged branches on bulk refusal
>   - branch: convert delete_branches() to a flags argument
>   - branch: add --forked filter for --list mode
> 
>   The 'git branch' command has been taught the '--delete-merged' option
>   to remove local branches that are already merged into their tracked
>   remote-tracking branches.
> 
>   Will merge to 'next'?
>   cf. <[email protected]>
>   source: <[email protected]>

I've just left some comments on this. It is almost there, but the way it 
checks if pushing a branch updates its upstream looks dodgy to me. The 
behavior wrt branches that are merged but are upstreams of other 
branches has changed so that the entire hierarchy is now preseved. I 
preferred it when we only kept the branch that was the upstream of the 
unmerged branch and deleted everything underneath but I'm happy enough 
if others prefer this new behavior.

Thanks

Phillip