builtin/repack.c: allow configuring cruft pack generation
commit4571324b99fcf7bd9e58fce677801fbf72b0e0a5
authorTaylor Blau <me@ttaylorr.com>
Fri, 20 May 2022 23:18:06 +0000 (20 19:18 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 22:48:26 +0000 (26 15:48 -0700)
tree62f6efe9132e04484e66c304e784e661eca3d58c
parentf9825d1cf752b8d04a3e9193ff6fdb54d09e28a3
builtin/repack.c: allow configuring cruft pack generation

In servers which set the pack.window configuration to a large value, we
can wind up spending quite a lot of time finding new bases when breaking
delta chains between reachable and unreachable objects while generating
a cruft pack.

Introduce a handful of `repack.cruft*` configuration variables to
control the parameters used by pack-objects when generating a cruft
pack.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/repack.txt
builtin/repack.c
t/t5329-pack-objects-cruft.sh