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

Re: [RFC] deprecating and eventually removing "git relink"?

From
Jeff King <peff@peff.net>
Date
Nov 14, 2011, 20:25 UTC
Message-ID
<20111114202522.GA26269@sigill.intra.peff.net>
In-Reply-To
<7vfwhqjw4u.fsf@alter.siamese.dyndns.org>
On Mon, Nov 14, 2011 at 12:18:25PM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> > Yes, I think that is sensible. I'm not sure there is even any core git
> > code to be written. I think a wrapper that does the following would
> > probably work:
> 
> I agree with your outline, which I find is in line with what I had in mind
> in the message Miles responded.
> 
> The approach is different from what Miles alluded to, which is to have
> "clients" create objects in the "central" place in the first place,
> though.

It seems to me that is simply an optimization that can come later. An initial, no-C-code implementation would write to individual repos as usual, and then occasionally migrate objects to the master shared repo (and remove duplicates from individual repos). That's an easy to implement low-risk experiment from which we can draw conclusions about how well such a system works in practice.

And then if it seems like a good path, an obvious optimization[1] is to write directly into the parent object store, skipping the migration. This might involve git-core code, or maybe it just means setting up the repos differently (e.g., symlinking the objects directory to the master store).

-Peff

[1] Actually, I am slightly dubious that this optimization is worth doing. It seems like it would save you from writing the data only to copy it later. But in practice, we write loose objects, and you are already rewriting the data to migrate it into packfiles. So the migration already happens, and instead we would just be migrating to packfiles in the central repo.

Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 15 in “[RFC] deprecating and eventually removing "git relink"?”
  1. Junio C HamanoNov 14, 2011
  2. Miles BaderNov 14, 2011
  3. Junio C HamanoNov 14, 2011
  4. Chris PackhamNov 14, 2011
  5. Simon BrennerNov 14, 2011
  6. Jeff KingNov 14, 2011
  7. Junio C HamanoNov 14, 2011
  8. Jeff KingNov 14, 2011
  9. Junio C HamanoNov 14, 2011
  10. Miles BaderNov 15, 2011
  11. Phillip SusiNov 21, 2011
  12. Jeff KingNov 21, 2011
  13. Phillip SusiNov 22, 2011
  14. Junio C HamanoNov 14, 2011
  15. Miles BaderNov 15, 2011

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.