Re: [PATCH] gc --auto: warn garbage collection happens soon
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 28, 2011, 20:02 UTC
- Message-ID
- <7vfwg41n3p.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20111228184000.GA18780@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> [1] Actually, it's not just having objects. You may have just exploded > unreachable objects from a pack, but they are still younger than the > 2 week expiration period. Therefore trying to prune them is > pointless, because even if they are unreachable, you won't delete > them. So you really want to say "how many actual candidate objects > do we have for pruning?"
An obvious knee-jerk reaction is "Ugh, if we have very recently repacked, don't we know what are reachable and what are not already, and use that knowledge while pruning to avoid traversing everything again?"
My memory around repack, fsck and prune needs refreshing, though, to tell if that suggestion is feasible.