]> git.ipfire.org Git - thirdparty/git.git/commit
branch: convert delete_branches() to a flags argument
authorHarald Nordgren <haraldnordgren@gmail.com>
Thu, 30 Jul 2026 13:58:31 +0000 (13:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 16:55:44 +0000 (09:55 -0700)
commit7cd45661ad29fc90dbf0718ec60a9b3211701c08
treea47b0481eeddfc61eee563d66004206c5e159820
parentbd1a177d7a688fd77fd3750c67f3b330fa5f44f1
branch: convert delete_branches() to a flags argument

delete_branches() takes separate force and quiet parameters, while
check_branch_commit() takes force. The next commits would grow this
collection further. Replace them with a single unsigned flags argument
and an enum.

Test the FORCE and QUIET bits directly from flags at each use site so
that mutating or forwarding flags cannot leave cached values stale.

No change in behavior.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c