]> git.ipfire.org Git - thirdparty/git.git/commit
branch: add branch.<name>.deleteMerged opt-out
authorHarald Nordgren <haraldnordgren@gmail.com>
Sat, 25 Jul 2026 11:32:15 +0000 (11:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Jul 2026 17:15:04 +0000 (10:15 -0700)
commit4ef02bc803796458fecaae7164e69af8518fc5a3
treec60f5d7e3e7db50385dfb4f700843f611ce10c39
parent75403cb3a4137eca577bdd7be2361ea62f69f5f3
branch: add branch.<name>.deleteMerged opt-out

Setting branch.<name>.deleteMerged=false exempts that branch from
"git branch --delete-merged", which is useful for a topic you want
to keep developing after an early round of it has been merged
upstream. Unless --quiet is given, each skip is reported so the
user knows why their topic was kept.

Explicit deletion with "git branch -d" still uses the normal merge
check and ignores this setting.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/branch.adoc
Documentation/git-branch.adoc
builtin/branch.c
t/t3200-branch.sh