]> git.ipfire.org Git - thirdparty/git.git/commit
branch: add --dry-run for --delete-merged
authorHarald Nordgren <haraldnordgren@gmail.com>
Thu, 30 Jul 2026 13:58:36 +0000 (13:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 16:55:45 +0000 (09:55 -0700)
commit308d3bf9bb6080b403ee8c539ad503d80224014e
treee20e47ab3faadce8fae41142fa2b9b8be3e4f602
parent8ac53c69950fd4d0e57c1e86d022a4668966b18d
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