]> git.ipfire.org Git - thirdparty/git.git/commit
repack: extract `locate_existing_pack()` helper
authorTaylor Blau <me@ttaylorr.com>
Fri, 26 Jun 2026 19:02:17 +0000 (15:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Jun 2026 21:54:54 +0000 (14:54 -0700)
commitd65798abb799bdf6915501ca274fc85cbc35d69f
tree99355ba954134fd304014bd92ea738b978c502f3
parent1a9c49e4bb07bd26d2f591c746ab9c9c82423533
repack: extract `locate_existing_pack()` helper

Factor out the lookup from `existing_packs_retain_cruft()` that converts
a pack basename to a `string_list_item` into a reusable static helper
function, `locate_existing_pack()`.

A subsequent commit will introduce a new function which will need to
perform this same lookup against a different `string_list`.

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