gc.sh: produce more optimum packs
commit40aff7030e29bb67964da1db37e50eddbaf9242a
authorKyle J. McKay <mackyle@gmail.com>
Wed, 1 Jun 2016 06:15:40 +0000 (31 23:15 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 1 Jun 2016 06:15:40 +0000 (31 23:15 -0700)
tree4e55c2b7375c923d780b58bfe98097d762d12c9f
parent6d6e813658ff5aa9ec4cd4415ba162ac54c3b3d4
gc.sh: produce more optimum packs

If there are less than var_redelta_threshold objects just go ahead
and recompute all deltas.  We only repack if there's actually something
to do so it doesn't increase work when there's no repository change since
the last gc.

Also, when not recomputing deltas, try to get Git to prefer the deltas
from the last full pack as they are likely to be better since more objects
were considered when creating them.

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