Re: [PATCH 1/2] prepare_packed_git(): refactor garbage reporting in pack directory
- From
Jeff King <peff@peff.net>
- Date
- Nov 4, 2015, 20:15 UTC
- Message-ID
- <20151104201521.GD16101@sigill.intra.peff.net>
- In-Reply-To
- <CAEtYS8S_ys3jT5ziWd7_u6Dn8b3LwnZYO7Pz6EegsmWpUM5riw@mail.gmail.com>
On Wed, Nov 04, 2015 at 02:08:21PM -0600, Doug Kelly wrote:
Show 7 quoted lines
> Currently there's no mtime-guarding logic (I dug up that conversation > earlier, though, but after I'd done the respin on this series)... OK, > in that case, I'll create a separate patch that tests/cleans up > .bitmap, but doesn't touch .keep. This might be a small series since > I think the logic for finding pack garbage doesn't know anything about > .bitmap per-se, so it's looking like I'll extend that relevant code, > before adding the handling in gc and appropriate tests.
I'd hoped you could reuse the list of extensions found in builtin/repack.c (e.g., see remove_redundant_pack). But I guess that is not connected with the garbage-reporting code. And anyway, the simple list probably does not carry sufficient information (it does not know that ".keep" is potentially more precious than ".idx", for example).
-Peff