From: Jeff King Date: Mon, 09 Jan 2017 06:21:37 GMT Subject: Re: Preserve/Prune Old Pack Files Message-ID: <20170109062137.zghmurndlbts5x44@sigill.intra.peff.net> In-Reply-To: <5172470.bsscxDU4yv@mfick1-lnx> On Wed, Jan 04, 2017 at 09:11:55AM -0700, Martin Fick wrote: > I am replying to this email across lists because I wanted to > highlight to the git community this jgit change to repacking > that we have up for review > > https://git.eclipse.org/r/#/c/87969/ > > This change introduces a new convention for how to preserve > old pack files in a staging area > (.git/objects/packs/preserved) before deleting them. I > wanted to ensure that the new proposed convention would be > done in a way that would be satisfactory to the git > community as a whole so that it would be more easy to > provide the same behavior in git eventually. The preserved > pack files (and accompanying index and bitmap files), are not > only moved, but they are also renamed so that they no longer > will match recursive finds looking for pack files. It looks like objects/pack/pack-123.pack becomes objects/pack/preserved/pack-123.old-pack, and so forth. Which seems reasonable, and I'm happy that: find objects/pack -name '*.pack' would not find it. :) I suspect the name-change will break a few tools that you might want to use to look at a preserved pack (like verify-pack). I know that's not your primary use case, but it seems plausible that somebody may one day want to use a preserved pack to try to recover from corruption. I think "git index-pack --stdin