Merge branch 'tb/repack-existing-packs-cleanup'
commit5c0f9933ece11cf194cf33d7322aa798eb6375c3
authorJunio C Hamano <gitster@pobox.com>
Sat, 23 Sep 2023 00:01:36 +0000 (22 17:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Sep 2023 00:01:36 +0000 (22 17:01 -0700)
tree987cf48e9224aea1533412cdc02b7e2ef878ca8e
parent6a8bb340f2d73636ab739fbe457943e00b322376
parentc6a0468f824f458acea442450d204a3d01d1aa9b
Merge branch 'tb/repack-existing-packs-cleanup'

The code to keep track of existing packs in the repository while
repacking has been refactored.

* tb/repack-existing-packs-cleanup:
  builtin/repack.c: extract common cruft pack loop
  builtin/repack.c: avoid directly inspecting "util"
  builtin/repack.c: store existing cruft packs separately
  builtin/repack.c: extract `has_existing_non_kept_packs()`
  builtin/repack.c: extract redundant pack cleanup for existing packs
  builtin/repack.c: extract redundant pack cleanup for --geometric
  builtin/repack.c: extract marking packs for deletion
  builtin/repack.c: extract structure to store existing packs
builtin/repack.c