Re: [PATCH v19 5/7] branch: add --delete-merged <branch>
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Jul 19, 2026, 15:30 UTC
- Message-ID
- <CAHwyqnXdaPeO12+p=_+_ttrknV0-VqTMnH-suS66yZ4stsBKnQ@mail.gmail.com>
- In-Reply-To
- <xmqqtspvptqc.fsf@gitster.g>
I think I can fix this with
```
-+ if (strset_contains(data->deletable, ref->name))
++ if (strset_contains(data->deletable, ref->name) ||
++ strset_contains(data->spared, ref->name))
```I used your example to write a test about it as well.
Harald