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

Re: Partial Clone garbage collection?

From
Jeff King <peff@peff.net>
Date
Oct 30, 2019, 20:38 UTC
Message-ID
<20191030203833.GD29013@sigill.intra.peff.net>
In-Reply-To
<43646191572459422@myt3-4825096bdc88.qloud-c.yandex.net>
On Wed, Oct 30, 2019 at 09:17:02PM +0300, без имени wrote:
Show 6 quoted lines
> > Are there any plans to add a --filter parameter to git gc as well,
> > that would be able to prune past history of objects and convert them
> > back into pack promises?
> 
> This operation will change the hash, and hence the history. I tried to
> draw attention to a specific trick:

I don't think this is quite the same thing. Simon is just talking about the partial-clone system. The files are still mentioned in history, but the client does not store the matching blobs themselves. Instead, it can fetch them on-demand from a remote repository.

-Peff
Previous: без имениNext: Jeff King
Message 3 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.