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

Re: What's up with the GIT archive on www.kernel.org?

From
Junio C Hamano <junkio@cox.net>
Date
Sep 12, 2005, 01:39 UTC
Message-ID
<7virx7njxa.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0509111431400.3242@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> Btw, there's no reason why a client-side thing couldn't just parse the 
> "alternates" thing, and if it doesn't find the objects in the main object 
> directory, go and fetch them from the alternates itself.
There is.

For kernel.org, you could say '/pub/scm/blah' in your alternates and expect it to work, only because http://kernel.org/pub hierarchy happens to match the absolute path /pub on the filesystem, but for most people's default HTTP server installation, they would need to say /var/www/scm/blah to have alternate work locally, but somebody has to know that the named directory is served as http://machine.xz/pub/scm/blah somewhere.

Client side smarts need some help from the user here to know that '/var/www/scm/blah' read off of objects/info/alternates match that URL.

Previous: Linus TorvaldsNext: Dmitry Torokhov
Message 7 of 18 in “Re: What's up with the GIT archive on www.kernel.org?”
  1. Linus TorvaldsSep 11, 2005
  2. Sam RavnborgSep 11, 2005
  3. Linus TorvaldsSep 11, 2005
  4. Roland DreierSep 11, 2005
  5. Linus TorvaldsSep 11, 2005
  6. Linus TorvaldsSep 11, 2005
  7. Junio C HamanoSep 12, 2005
  8. Dmitry TorokhovSep 12, 2005
  9. Ryan AndersonSep 12, 2005
  10. Linus TorvaldsSep 12, 2005
  11. Define relative .git/objects/info/alternates semantics.Junio C Hamano, Sep 13, 2005
  12. Linus TorvaldsSep 13, 2005
  13. Junio C HamanoSep 13, 2005
  14. Daniel BarkalowSep 13, 2005
  15. H. Peter AnvinSep 12, 2005
  16. Tony LuckSep 12, 2005
  17. Linus TorvaldsSep 12, 2005
  18. Junio C HamanoSep 11, 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.