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

Re: git-daemon --inetd

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 15, 2005, 19:40 UTC
Message-ID
<Pine.LNX.4.58.0509151225410.26803@g5.osdl.org>
In-Reply-To
<4329C93D.2020701@zytor.com>
On Thu, 15 Sep 2005, H. Peter Anvin wrote:
> 
> Could git-upload-pack be integrated into the git-daemon binary, so that 
> the exec isn't needed?
Hmm.. Looking a bit closer, that's not really very helpful. 

git-upload-pack ends up fork/exec'ing git-rev-list too, to generate the list of commits. And then it ends up finishing off with "git-pack-objects".

Yes, we could make it all be one huge thing, and try to have lots of functional interfaces. But that would be really quite ugly and big changes (they'd have to be asynchronous and give incremental results etc etc).

Maybe a post-1.0 effort. For now, I think you need to have a minimal execution environment inside the chroot. Not a lot: git-upload-pack, git-rev-list and git-pack-objects.

Now, it turns out that git-rev-list really is the most complex of them all, largely due to --merge-order. If you define NO_OPENSSL, you'll get a much simpler execution environment.

Btw, I think --merge-order was cool, but its weaker cousin --topo-order is what is actually _used_. Maybe we should deprecate --merge-order? Right now the only real user is git-archimport, and I think that one too really only wants topo-order too. For example, right now I think git-archimport won't actually work if you build without openssl.

Jon? Martin?
		Linus
Previous: H. Peter AnvinNext: Martin Langhoff
Message 6 of 15 in “git-daemon --inetd”
  1. H. Peter AnvinSep 15, 2005
  2. Linus TorvaldsSep 15, 2005
  3. H. Peter AnvinSep 15, 2005
  4. Linus TorvaldsSep 15, 2005
  5. H. Peter AnvinSep 15, 2005
  6. Linus TorvaldsSep 15, 2005
  7. Martin LanghoffSep 15, 2005
  8. Jon SeymourOct 22, 2005
  9. Linus TorvaldsOct 22, 2005
  10. Junio C HamanoSep 15, 2005
  11. Junio C HamanoSep 16, 2005
  12. Junio C HamanoSep 16, 2005
  13. H. Peter AnvinSep 16, 2005
  14. Linus TorvaldsSep 16, 2005
  15. H. Peter AnvinSep 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.