gc.sh: support girocco.redelta=always config
commit16a1d5ec36589aee7e595823da19932a299d02e5
authorKyle J. McKay <mackyle@gmail.com>
Tue, 23 Aug 2016 21:55:24 +0000 (23 14:55 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 23 Aug 2016 21:55:24 +0000 (23 14:55 -0700)
tree23b31048e08a0fd78514817d98dcb6a73c96cebd
parent4a05f19672edefcefe82acba3f8954fa01a05081
gc.sh: support girocco.redelta=always config

If `git config girocco.redelta` is "always" then for the final repack on
a full gc, deltas will always be recomputed regardless of the value of
$var_redelta_threshold or how many objects are actually present.

This can be used to force a repository to stay as optimized as possible
even if it execeeds the normal redelta threshold.

However, care must be used as setting girocco.redelta=always on a
repository with an extremely excessive number of objects will likely
cause either a memory blowout or a gc timeout.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc.sh