Add support for occasional full repacks

Upon discussion on the kernel.org user lists, add support for doing
occasional full repacks (git-repack -f flag). It doesn't make sense to
run full repacks every time we pack the repository, but it is handy to
be able to run it occasionally -- e.g. every 10th invocation of the
repack script.

This feature will remain off unless you set it in your fsck.conf using
the following two options:

full_repack_every = (int)   # e.g. 10 for every 10th repack
full_repack_flags = (flags) # e.g. -Adlqf --window=200 --depth=50

Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
6 files changed