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

Re: [PATCH] Alternate object pool mechanism updates.

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 16, 2005, 19:45 UTC
Message-ID
<Pine.LNX.4.63.0508161519090.23242@iabervon.org>
In-Reply-To
<Pine.LNX.4.58.0508161156430.3553@g5.osdl.org>
On Tue, 16 Aug 2005, Linus Torvalds wrote:
Show 13 quoted lines
> 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".
>
> 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?

I'd originally proposed the .git/info directory because I keep multiple working trees for the same repository, by having symlinks for .git/objects and .git/refs, and I could also get other per-repository things to be shared properly without knowing exactly what they are if they're in a subdirectory of .git that could be a symlink. This would mean that a ".git/config" would be per-working-tree, like .git/index or .git/HEAD, not pre-repository like ".git/info/config". Of course, the core didn't have any thing to go in .git/info at the time, so it didn't really get tacked down.

(I find it convenient to have mainline and my latest work both checked out for reference while I'm generating a series of commits for a patch set, and I don't want three different repositories which could be out of sync; this also keeps the repository safely out of pwd, since I have the actual repositories as ~/git/{project}.git/)

	-Daniel
*This .sig left intentionally blank*
Previous: Linus TorvaldsNext: Junio C Hamano
Message 8 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.