Re: [RFC] branch: delete gone-upstream branches only when proven merged into a named ref
On Thu, Oct 22, 2026 at 7:14 PM Ben Knoble <ben.knoble@gmail.com> wrote:
Show 20 quoted lines
>
>
> > Le 22 oct. 2026 à 10:39, Harald Nordgren <haraldnordgren@gmail.com> a écrit :
> >
> >
> >>
> >> I would much rather see more --option=value,value,value syntaxes, like
> >>
> >> git branch --delete-merged='origin/*,into:origin/master'
> >
> > This feels completely chaotic to me and becomes a kitchen sink :)
>
> But is it better or worse than the kitchen sink of
>
> git branch --delete-merged origin/* --into origin/master […]
>
> ? Hm. I suppose if you didn’t like commas, we could allow
> repeating the option to « stack » instead of replacing.
>
> But I get the feeling that’s not what you took issue with ;)
No, this is the part I take issue with:
--delete-merged=into:origin/master
It feels akin to hacking some code into the arg like a
find . -exec something
Harald