jobd/gc.sh: prune worktrees, logs and rerere together
commite58fe83faf7b55457f1e2f47a1f338bacdce475e
authorKyle J. McKay <mackyle@gmail.com>
Sun, 28 Jun 2020 20:14:13 +0000 (28 13:14 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 28 Jun 2020 20:14:13 +0000 (28 13:14 -0700)
treef3777df9bcfa7646fff4ea763d7df19e1c055337
parent1eeb12756ba5fb8a4b4802ad3931f99e64ffda2a
jobd/gc.sh: prune worktrees, logs and rerere together

Instead of pruning the logs at the beginning of the gc and then,
finally, pruning worktrees and rerere at the very end after all
gc has completed, do them all together at the beginning.

By pruning worktrees before checking for the `worktrees` subdir,
we may save some work since Git will remove the `worktrees` subdir
if it prunes the last worktree.

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