]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: use named flags for existing_packs
authorTaylor Blau <me@ttaylorr.com>
Fri, 20 May 2022 23:18:08 +0000 (19:18 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 22:48:26 +0000 (15:48 -0700)
commit72263ffc322d0b6c8646a4f096981a0b4bad17ba
tree92bb7537dd8d91f61a21ac68a033b4de73b42f73
parent4571324b99fcf7bd9e58fce677801fbf72b0e0a5
builtin/repack.c: use named flags for existing_packs

We use the `util` pointer for items in the `existing_packs` string list
to indicate which packs are going to be deleted. Since that has so far
been the only use of that `util` pointer, we just set it to 0 or 1.

But we're going to add an additional state to this field in the next
patch, so prepare for that by adding a #define for the first bit so we
can more expressively inspect the flags state.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c