[PATCH] fetch: add fetch.pruneLocalBranches config
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- May 13, 2026, 18:57 UTC
- Message-ID
- <20260513185717.51743-1-haraldnordgren@gmail.com>
- In-Reply-To
- <xmqqqznfifrg.fsf@gitster.g>
> I am not sure if this is a good idea at all. The option is called > prune-MERGED and with or without --force, mergedness should be what > determines if a branch is deleted.
Well, when I started writing the feature it was "prune local branches", and it evolved from there to prune merged.
But you're probably right. I did wipe up some branches with real work on my side using this (I restored them), so it seems to be more of a foot-gun than I first imagined.
Seems reasonable to remove the '--force' functionality.
Harald