gc.sh: compact non-current reflogs
commit5ba0c323cb77e6d8b363aa6f156543f9727890a2
authorKyle J. McKay <mackyle@gmail.com>
Tue, 6 Sep 2016 21:56:08 +0000 (6 14:56 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 6 Sep 2016 21:56:08 +0000 (6 14:56 -0700)
tree9badb1d36aa0af5403c8505340e9aa19a5ced668
parent0ba10ffe97ba57c27c2aec835ef7337663a7c72c
gc.sh: compact non-current reflogs

If there's a large amount of activity on a project and reflogs are kept
for many days, they could potentially consume a fair amount of space
(although still likely much less than the repository itself).

Mitigate this by gzip compressing log files for other than the current
date to greatly reduce the space required while being very careful to
handle "accidents" where both a compressed and uncompressed log file for
the same date end up somehow coexisting simultaneously.

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