Re: [PATCH] fetch: add fetch.pruneLocalBranches config
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 11, 2026, 02:59 UTC
- Message-ID
- <xmqqh5oetzw3.fsf@gitster.g>
- In-Reply-To
- <20260505220712.93952-1-haraldnordgren@gmail.com>
Harald Nordgren <haraldnordgren@gmail.com> writes:
Show 6 quoted lines
>> I have some sympathy for the desire to clean up unnecessary local >> branches, but I don't like the concept that `git fetch` modifies local >> branches, not even as an opt-in. Deleting local branches should be `git >> branch`'s task exclusively (at the porcelain level). > > Yeah, maybe that's a good point.
I think the latest iteration was sent after the above exchange, yet it seems to have changes to builtin/fetch.c to cause `git fetch` to modify local branches still. Will we have another update that is hopefully final to excise that part, or are we OK to allow `fetch` to modify the local state as an opt-in now?
Thanks.