git-svn gc: trigger incremental packing if "lotsa" single-object packs
commit18da7861a5bf4cfe7116c1e126e52b45d3fcbbb7
authorKyle J. McKay <mackyle@gmail.com>
Thu, 11 Jun 2020 03:17:30 +0000 (10 20:17 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 11 Jun 2020 03:17:30 +0000 (10 20:17 -0700)
tree7b25238f1f11ba4a3a19f1e8848c2cfa8a4cef6a
parent680157999e2c925e4687d08e1072554bcd2cc609
git-svn gc: trigger incremental packing if "lotsa" single-object packs

Add new `lotsa_loose_objects_or_sopacks` function and call it instead
of `lotsa_loose_pruned_objects` when deciding whether or not to call
`pack_incremental_loose_objects_if_lockable`.

When `git-svn fetch` spits out a whole bunch of single-object packs,
they will now be combined at the next opportunity even when there
are no actual loose objects (or not enough to trigger a packing).

Force `gc.autoPackLimit=1` during any `git-svn` clone/update operation
to make sure that an opportunity arises to combine single-object
packs even when there are no loose objects themselves.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc-git-svn.sh
jobd/gc-util-functions.sh
jobd/update.sh
taskd/clone.sh