summaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-17 07:44:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-18 06:12:15 (GMT)
commita087cc9819d5790a0aeb42c2bd74f781c555e8d6 (patch)
tree8987c5276acacad2520e12db970e4a1158ae3adf /builtin-pack-objects.c
parente9831e83e063844b90cf9e525d0003715dd8b395 (diff)
downloadgit-a087cc9819d5790a0aeb42c2bd74f781c555e8d6.zip
git-a087cc9819d5790a0aeb42c2bd74f781c555e8d6.tar.gz
git-a087cc9819d5790a0aeb42c2bd74f781c555e8d6.tar.bz2
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>
Diffstat (limited to 'builtin-pack-objects.c')
0 files changed, 0 insertions, 0 deletions