]> git.ipfire.org Git - thirdparty/git.git/commit
branch: add --dry-run for --delete-merged
authorHarald Nordgren <haraldnordgren@gmail.com>
Sat, 25 Jul 2026 11:32:16 +0000 (11:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Jul 2026 17:15:04 +0000 (10:15 -0700)
commitd1d403ccff514ec63650d3fac731668695f13876
treed7ee191a37428975b941ba30e401617758bf83c4
parent4ef02bc803796458fecaae7164e69af8518fc5a3
branch: add --dry-run for --delete-merged

"git branch --dry-run --delete-merged ..." prints one line per ref that
would be deleted without modifying refs or branch configuration.

--dry-run is only meaningful together with --delete-merged and is
rejected otherwise.

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