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

Cleanup tool for old blobs in partial clone

From
MKMiłosz Kosobucki <mikom3@gmail.com>
Date
Dec 11, 2020, 12:03 UTC
Message-ID
<6446f471-87ed-9fc4-fd54-61c5cf95a218@gmail.com>
Hello,

I recently looked into the partial clone functionality and how it could be used to replace Git LFS.

Let's say that I use partial clone where one directory is filtered out through --filter=sparse:oid=XXX. Let's also say it's a directory with big assets for a computer game.

Now, as the project progresses and new versions of assets are checked in, I'll accumulate many version of these assets as I get new versions. I won't need them though, because most of the time I'm interested only in the latest version.

So my question is: is there some tool (probably similar to git lfs prune) that will let me get rid of the blobs that I don't need anymore?

I couldn't find information about it anywhere in the docs. I vaguely remember a mention of something like that possibly being done in the future in partial clone (or maybe promisor remote?) patch mails but I couldn't find it again.

Best regards,
-- 
Miłosz Kosobucki
Next: Christian Couder
Message 1 of 3 in “Cleanup tool for old blobs in partial clone”
  1. Miłosz KosobuckiDec 11, 2020
  2. Christian CouderDec 13, 2020
  3. Miłosz KosobuckiDec 15, 2020

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.