Re: [PATCH] branch: let --delete-merged find squash merged branches
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Sep 29, 2026, 18:34 UTC
- Message-ID
- <CAHwyqnXA6kxktxNRPCbq0hTdH+G+3jSkCq5ghkS6QkJEgA1wkw@mail.gmail.com>
- In-Reply-To
- <CALnO6CC4fS0LWe6ta7B-C3dQXSjfYhab-e=EHdneRRqfa9mAZw@mail.gmail.com>
Show 8 quoted lines
> > We might hide it behind a feature flag? > > I could imagine wanting a CSV-style value for the option, like > "--delete-merged=squashed,rebased" vs. "--delete-merged=merged" > (current default), or something. But I'd have to think about whether > I'm suggesting that only to work around performance or to also support > actual use cases. Mostly I think people just want to go "gah, delete > merged branches" and not think about it further… hm.
For me, the only reason to hide this would be for performance.
Yes, I think most people (me included) would rather have the simplest possible command. I'd rather not have to specify the pattern so that these are to the same:
git branch --delete-merged
git branch --delete-merged '*/*'Harald