diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-10-23 09:16:13 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-23 09:54:36 -0700 |
| commit | 3de72d60232019b26f17d957bc3e2f6163b545ac (patch) | |
| tree | 01d9c3d9736c21beb61ba6708c3496baeac60130 /commit-graph.c | |
| parent | refs: fully reset `struct ref_iterator::ref` on iteration (diff) | |
| download | git-3de72d60232019b26f17d957bc3e2f6163b545ac.tar.gz git-3de72d60232019b26f17d957bc3e2f6163b545ac.zip | |
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 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
