]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: extract redundant pack cleanup for --geometric
authorTaylor Blau <me@ttaylorr.com>
Wed, 13 Sep 2023 19:17:49 +0000 (15:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Sep 2023 19:32:47 +0000 (12:32 -0700)
commit639c4a3992337e15c0faa2fa6d73462cc76ca7b9
treedeea15f493107ecad85e36604c79e59df50b9bd5
parent054b5e4873d9ef2348f0880d66f1acf73bad7d59
builtin/repack.c: extract redundant pack cleanup for --geometric

To reduce the complexity of the already quite-long `cmd_repack()`
implementation, extract out the parts responsible for deleting redundant
packs from a geometric repack out into its own sub-routine.

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