]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/maintenance: make the geometric factor configurable
authorPatrick Steinhardt <ps@pks.im>
Fri, 24 Oct 2025 06:57:17 +0000 (08:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Oct 2025 20:42:43 +0000 (13:42 -0700)
commit5c2ad50193896dc74e51e4b7a5af4ea734746316
tree115507802d550040b5f8fc9e756035e80dd40832
parent9bc151850c1c593f4baf8d6d2a1d14bb4875844a
builtin/maintenance: make the geometric factor configurable

The geometric repacking task uses a factor of two for its geometric
sequence, meaning that each next pack must contain at least twice as
many objects as the next-smaller one. In some cases it may be helpful to
configure this factor though to reduce the number of packfile merges
even further, e.g. in very big repositories. But while git-repack(1)
itself supports doing this, the maintenance task does not give us a way
to tune it.

Introduce a new "maintenance.geometric-repack.splitFactor" configuration
to plug this gap.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/maintenance.adoc
builtin/gc.c
t/t7900-maintenance.sh