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

Re: [PATCH] C implementation of the 'git' program.

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 10, 2005, 19:41 UTC
Message-ID
<Pine.LNX.4.64.0511101133550.4627@g5.osdl.org>
In-Reply-To
<20051110182631.3C5615BF90@nox.op5.se>
On Thu, 10 Nov 2005, Andreas Ericsson wrote:
Show 5 quoted lines
> 
> This patch provides a C implementation of the 'git' program and introduces
> support for putting the git-* commands in their own directory. It also
> saves some time on executing git-* commands in a tight loop and it prints
> the currently available git commands in a nicely formatted list.

I think this makes sense - "git" may be a very simple program even in shell, but hey, it's simple even in C, and while performance may be a secondary issue, when it is in C we will have the option to extend in more effectively later.

For example, we might implement some things directly in the "git" wrapper.
And the performance difference does seem to be quite noticeable too..
> The location of the GIT_LIB can be obtained by running
> 
> 	git --lib

I think this might be a bit ambiguous. When I see "GIT_LIB", to me it implies traditional libraries (ie a "libgit.a" kind of thing), not the kind of "git executable plugin" directory.

So I'd suggest renaming "--lib" and "GIT_LIB" to be more of a "--libexec" kind of flavor, if only to avoid that confusion. Even if the actual directory ends up being /usr/lib/git-<version>/ as in my original suggestion, I think it's good to make it clear that it's not just some kind of "link type" library, but more of a combination of libraries and plugins and executables.

But maybe that's just me?
		Linus
Previous: Andreas EricssonNext: Andreas Ericsson
Message 2 of 9 in “C implementation of the 'git' program.”
  1. C implementation of the 'git' program.Andreas Ericsson, Nov 10, 2005
  2. Linus TorvaldsNov 10, 2005
  3. Andreas EricssonNov 10, 2005
  4. Petr BaudisNov 10, 2005
  5. Junio C HamanoNov 11, 2005
  6. Raja R HarinathNov 11, 2005
  7. Junio C HamanoNov 11, 2005
  8. Andreas EricssonNov 11, 2005
  9. Junio C HamanoNov 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.