commit | a087cc9819d5790a0aeb42c2bd74f781c555e8d6 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Mon Sep 17 00:44:17 2007 -0700 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Sep 17 23:12:15 2007 -0700 |
tree | 8987c5276acacad2520e12db970e4a1158ae3adf | |
parent | e9831e83e063844b90cf9e525d0003715dd8b395 [diff] |
git-gc --auto: protect ourselves from accumulated cruft Deciding to run "repack -d -l" when there are too many loose objects would backfire when there are too many loose objects that are unreachable, because repacking that way would never improve the situation. Detect that case by checking the number of loose objects again after automatic garbage collection runs, and issue an warning to run "prune" manually. Signed-off-by: Junio C Hamano <gitster@pobox.com>