aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-10-23 09:16:13 +0200
committerJunio C Hamano <gitster@pobox.com>2025-11-04 07:32:25 -0800
commiteb2934d94b43388642ce4840994800310a6d3456 (patch)
tree01d9c3d9736c21beb61ba6708c3496baeac60130 /commit-graph.c
parentrefs: fully reset `struct ref_iterator::ref` on iteration (diff)
downloadgit-eb2934d94b43388642ce4840994800310a6d3456.tar.gz
git-eb2934d94b43388642ce4840994800310a6d3456.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