Add option to check if reference backend needs repacking
The git-pack-refs(1)
command repacks references. It supports an --auto
flag which uses heuristics to decide and perform repacking.
Gitaly uses an expensive write transaction to perform repacking. However, it would be nice if Git exposed an option to check if the repository even needs repacking so the top level read transaction can decide if the creating the write transaction is even needed.