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

Re: What's in git.git

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 11, 2006, 13:50 UTC
Message-ID
<Pine.LNX.4.64.0604110645060.3722@g5.osdl.org>
In-Reply-To
<7v3bgk7mhy.fsf@assigned-by-dhcp.cox.net>
On Mon, 10 Apr 2006, Junio C Hamano wrote:
>
>       Retire git-log.sh
>       Retire git-log.sh (take#2)
I think you need a (take#3).

This creates "git-log" as a link to "git", but does so at _build_ time, not install time.

Which means that when it actually gets installed, it gets installed as a copy of that link, and you get two different executables instead of one single executable that is just linked to two names:

  [torvalds@g5 git]$ ls -li /home/torvalds/bin/git ~/bin/git-log
  67272830 -rwxr-xr-x 1 torvalds torvalds 333613 Apr 11 06:45 /home/torvalds/bin/git
  67272781 -rwxr-xr-x 1 torvalds torvalds 333613 Apr 11 06:45 /home/torvalds/bin/git-log

so it _works_, but it wastes 300kB+ for each "builtin". Which was kind of against the whole point.

I think the builtins should be a install-time only issue. 
		Linus
Previous: Junio C HamanoNext: Petr Baudis
Message 2 of 4 in “What's in git.git”
  1. Junio C HamanoApr 11, 2006
  2. Linus TorvaldsApr 11, 2006
  3. Petr BaudisApr 11, 2006
  4. Junio C HamanoApr 11, 2006

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.