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

Re: [PATCH] Alternate object pool mechanism updates.

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 16, 2005, 19:07 UTC
Message-ID
<Pine.LNX.4.58.0508161156430.3553@g5.osdl.org>
In-Reply-To
<7vr7cw7ypt.fsf@assigned-by-dhcp.cox.net>
On Sun, 14 Aug 2005, Junio C Hamano wrote:
Show 11 quoted lines
> Linus Torvalds <torvalds@osdl.org> writes:
> 
> > I think this is great - especially for places like kernel.org, where a lot 
> > of repos end up being related to each other, yet independent.
> 
> Yes.  There is one shortcoming in the current git-clone -s in
> the proposed updates branch.  If the parent repository has
> alternates on its own, that information should be copied to the
> cloned one as well (e.g. Jeff has alternates pointing at you,
> and I clone from Jeff with -s flag --- I should list not just
> Jeff but also you to borrow from in my alternates file).

Btw, looking at the code, it strikes me that using ":" to separate the alternate object directories in the file is rather strange.

Maybe allow a different format for the file? Or at least allow '\n' as an alternate separator (but it would be nice to allow comments too).

Finally, I have to say that that "info" directory is confusing. Namely, there's two of them - the "git info" and the "object info" directories are totally different directories - maybe logical, but to me it smells like "info" is here a code-name for "misc files that don't make sense anywhere else".

Anyway, I don't think "alternates" is necessarily sensible as a "object" information. Sure, it's about alternate objects, but the thing is, object directories can be shared across many projects, but "alternates" to me makes more sense as a per-project thing.

What this all is leading up to is that I think we'd be better off with a totally new "git config" file, in ".git/config", and we'd have all the startup configuration there. Including things like alternate object directories, perhaps standard preferences for that particular repo, and things like the "grafts" thing.

Wouldn't that be nice?
		Linus
Previous: Junio C HamanoNext: Daniel Barkalow
Message 7 of 12 in “Alternate object pool mechanism updates.”
  1. Alternate object pool mechanism updates.Junio C Hamano, Aug 13, 2005
  2. Petr BaudisAug 13, 2005
  3. Junio C HamanoAug 13, 2005
  4. Junio C HamanoAug 14, 2005
  5. Linus TorvaldsAug 15, 2005
  6. Junio C HamanoAug 15, 2005
  7. Linus TorvaldsAug 16, 2005
  8. Daniel BarkalowAug 16, 2005
  9. Junio C HamanoAug 16, 2005
  10. Use LF and allow comments in objects/info/alternates file.Junio C Hamano, Aug 17, 2005
  11. Junio C HamanoAug 16, 2005
  12. Linus TorvaldsAug 16, 2005

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.