git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Partial Clone garbage collection?

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Oct 30, 2019, 20:45 UTC
Message-ID
<20191030204516.53832-1-jonathantanmy@google.com>
In-Reply-To
<20191030203714.GC29013@sigill.intra.peff.net>
> I don't recall seeing anybody actively working on this, but I think it
> would be a good idea.
I agree with this.
> You could naively just drop everything that matches the filter, and then
> re-fetch it as needed.

We should also retain the promisor objects that are not referenced by any other promisor object, regardless of whether it matches the filter. (If not, the resulting repository will not pass fsck.)

The place to make this change is most likely in repack_promisor_objects() in builtin/repack.c. Currently, it just repacks all known promisor objects into one - modifying it to only repack the ones we want (and adding a CLI option etc.) should be sufficient.

Previous: Jeff King
Message 5 of 5 in “Partial Clone garbage collection?”
  1. Simon HolmbergOct 30, 2019
  2. без имениOct 30, 2019
  3. Jeff KingOct 30, 2019
  4. Jeff KingOct 30, 2019
  5. Jonathan TanOct 30, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.