]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: pass "packdir" when removing packs
authorTaylor Blau <me@ttaylorr.com>
Wed, 15 Oct 2025 22:28:10 +0000 (18:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 17:08:54 +0000 (10:08 -0700)
commit9574e8f31d6d920973213ae5dbab6b77d2deeadf
tree278fa04f013a97661948e9939a3cf92931ada7d7
parentf905f49c68f9cf3aff93f0dcd065dd95345c21d5
builtin/repack.c: pass "packdir" when removing packs

builtin/repack.c defines a static "packdir" to instruct pack-objects on
where to write any new packfiles. This is also the directory scanned
when removing any packfiles which were made redundant by the latest
repack.

Prepare to move the "existing_packs_remove_redundant" function to its
own compilation unit by passing in this information as a parameter to
that function.

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