Re: git gc & deleted branches
- From
Jeff King <peff@peff.net>
- Date
- May 8, 2008, 21:31 UTC
- Message-ID
- <20080508213107.GA1016@sigill.intra.peff.net>
- In-Reply-To
- <48236F69.2060900@nrlssc.navy.mil>
On Thu, May 08, 2008 at 04:23:53PM -0500, Brandon Casey wrote:
Show 8 quoted lines
> > I thought that -A would eventually put them all into a single pack, > > killing off the old packs. > > '-a' puts everything in a single pack and kills off old packs. Anything that > was unreachable is not repacked in the new pack. > > '-A' does the same thing but it also repacks the unreachable objects that were > previously packed.
Ah, indeed. I hadn't looked closely at the -A behavior before. So yes, we are never killing off prunable packed objects. Probably we could use the same solution as "git prune --expire"; perhaps a "--keep-unreachable=2.weeks.ago"?
-Peff