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

Storage optimization with alternates

From
RRRocco Rutte <pdmef@gmx.net>
Date
Mar 9, 2007, 18:31 UTC
Message-ID
<20070309183100.GC7052@peter.daprodeges.fqdn.th-h.de>
Hi,

I have a potential problem with my workflow: I mirror several hg repositories into git with one git repo per hg repo. Out of these and via remotes config, I set up another tree I actually work with having the master branch map to the hg HEAD branch of the official repo and topic branches for all other git repos.

The git tree for the main one and all other mirrors mostly share the same objects as hg2git and git-fast-import fortunately produce stable SHA1 checksums.

Is there any way I can clean up the feature repos by saying "remove all objects that you can reach via alternates already"?

If there's nothing like that, would git get confused if I simply moved the plain binary object files around from one dir to the other and setting up alternates?

I cloned the working repo from the main one using alternates and hope git doesn't fetch objects again it can already reach via alternates.

Somehow related is another git-fast-import feature request (maybe): when it attempts to add objects to the pack file with SHA1s it can already reach via alternates, don't add them to the pack. If that worked (I didn't check), I would only have the main repo with all the objects and the feature repos pretty lightweight...

   bye, Rocco
-- 
:wq!
Next: Junio C Hamano
Message 1 of 2 in “Storage optimization with alternates”
  1. Rocco RutteMar 9, 2007
  2. Junio C HamanoMar 10, 2007

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.