diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-10-23 09:16:13 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-04 07:32:25 -0800 |
| commit | eb2934d94b43388642ce4840994800310a6d3456 (patch) | |
| tree | 01d9c3d9736c21beb61ba6708c3496baeac60130 /builtin/rev-parse.c | |
| parent | 4cea0422879f6a64c0f7ad0ddac6d43897a53e94 (diff) | |
refs: refactor reference status flags
The reference flags encode information like whether or not a reference
is a symbolic reference or whether it may be broken. This information is
stored in a `int flags` bitfield, which is in conflict with our modern
best practices; we tend to use an unsigned integer to store flags.
Change the type of the field to be `unsigned`. While at it, refactor the
individual flags to be part of an `enum` instead of using preprocessor
defines.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-parse.c')
0 files changed, 0 insertions, 0 deletions
