]> Kevux Git Server - rit/commit
object-name: turn INTERPRET_BRANCH_* constants into enum values
authorJialong Wang <jerrywang183@yahoo.com>
Wed, 18 Mar 2026 19:09:42 +0000 (15:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Mar 2026 19:52:29 +0000 (12:52 -0700)
commitc5fc44f54595f123c277e5839cbafa1bc9c8c050
tree4956573f4efd25c79ae9f535e192d97fbeaca8a7
parentca1db8a0f7dc0dbea892e99f5b37c5fe5861be71
object-name: turn INTERPRET_BRANCH_* constants into enum values

Replace the INTERPRET_BRANCH_* preprocessor constants with enum
values and use that type where these flags are stored or passed
around.

These flags describe which kinds of branches may be considered during
branch-name interpretation, so represent them as an enum describing
branch kinds while keeping the existing bitmask semantics and
INTERPRET_BRANCH_* element names.

Signed-off-by: Jialong Wang <jerrywang183@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
object-name.c
object-name.h
refs.c
refs.h