gc-util-functions.sh: extract common gc-related functions
commite3e8f7fc77127ef1f0d9980fae444c978facbcea
authorKyle J. McKay <mackyle@gmail.com>
Wed, 10 Jun 2020 03:46:33 +0000 (9 20:46 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 10 Jun 2020 03:46:33 +0000 (9 20:46 -0700)
tree8482cfc9373d26c872b7a6d1a1ae89b0948547b5
parent1eb05ceabb8320edd4a09b7b0431fcc214a6ad7f
gc-util-functions.sh: extract common gc-related functions

Move the run_combine_packs, dupe_file, rename_pack and
lotsa_loose_objects functions into a new gc-related
script library file.

This avoids code duplication for functions that need
to be used by different gc scripts but are not otherwise
general purpose enough to be moved into shlib.sh.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc-util-functions.sh [new file with mode: 0755]
jobd/gc.sh