shlib.sh: add check_and_set_needsgc function
commit061d2d0ceb46f4418c0435b3742a7242a7022525
authorKyle J. McKay <mackyle@gmail.com>
Sun, 31 Dec 2017 00:22:46 +0000 (30 16:22 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 31 Dec 2017 00:22:46 +0000 (30 16:22 -0800)
tree9793c6d798b5074f7da9bdb63a1e76f1b76bd116
parent1f2dc7c01b7404fe6a1214a13e0e65cc18d54be0
shlib.sh: add check_and_set_needsgc function

The check_and_set_needsgc function inspects the current directory
repository and sets .needsgc if it's not already set and the
repository could benefit from at least a "mini" garbage collection.

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