gc: use smarter alternates logic
commit13080f4ca8e7b10c64dbb57ca446cbe8adbfb3e9
authorKyle J. McKay <mackyle@gmail.com>
Fri, 22 Nov 2019 19:37:01 +0000 (22 12:37 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 22 Nov 2019 19:37:01 +0000 (22 12:37 -0700)
tree08aaeb4b5139e0fa4b0a568c51f63e4ef79fb73d
parente4211014b4b0aea7e557af6a6b17fb25c09928d5
gc: use smarter alternates logic

Replace uses of `[ ! -s objects/info/alternates ]` with
`is_empty_alternates_file objects/info/alternates` instead
and similarly for the opposite sense of the test.

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