gc.sh: add repack dir links to logs and worktrees
commit85e6c2d504b728836f7ffd64007b196b064d2955
authorKyle J. McKay <mackyle@gmail.com>
Thu, 22 Mar 2018 19:33:31 +0000 (22 12:33 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 22 Mar 2018 19:33:31 +0000 (22 12:33 -0700)
treed18add5ee8ab2658e9e005aa2e01db25ea63bc78
parent01b3020ff4e8ab793a469fff9854774abf419737
gc.sh: add repack dir links to logs and worktrees

When running pack-objects from the repack subdirectory created for
use during repacking, the "--reflog" option will not be effective
unless it can actually see the logs.

Add a link back to the logs directory if one exists so this can
happen and the referenced objects can be kept.

Unfortunately linked working tree HEAD logs seem to be left out in
the cold by the "--reflog" option.  Nevertheless, go ahead and add
a link back to the worktrees directory if one exists in case a
future Git version remedies the problem.

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