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

Re: [PATCH] Install built-ins as symlinks

From
Andreas Ericsson <ae@op5.se>
Date
Jul 11, 2006, 11:15 UTC
Message-ID
<44B38842.10609@op5.se>
In-Reply-To
<11526131792377-git-send-email-alp@atoker.com>
Alp Toker wrote:
Show 7 quoted lines
> Doing this now will save headache in the long run, avoiding mismatched
> versions of installed utilities and dangling copies of removed or
> renamed git commands that still appear to work. It also makes screwups
> when packaging git or making system backups less likely.
> 
> BusyBox has been doing it this way for years.
> 

Git has been doing it for a couple of months, although it uses hardlinks instead of symlinks. Hardlinks are slightly faster and actually consume a little less hard-disk space, although the differences are so small you won't notice it unless you do several thousand invocations.

Show 5 quoted lines
>  
>  $(BUILT_INS): git$X
> -	rm -f $@ && ln git$X $@
> +	ln -sf git$X $@
>  
The -f option to ln is not very portable, hence the "rm && ln" construct.
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Alp TokerNext: Johannes Schindelin
Message 7 of 17 in “Typo fix”
  1. Typo fixAlp Toker, Jul 11, 2006
  2. gitweb: Send XHTML as 'application/xhtml+xml' where possibleAlp Toker, Jul 11, 2006
  3. gitweb: Include a site name in page titlesAlp Toker, Jul 11, 2006
  4. gitweb: Use the git binary in the search path by defaultAlp Toker, Jul 11, 2006
  5. git-send-email: Remove redundant Reply-To headerAlp Toker, Jul 11, 2006
  6. Install built-ins as symlinksAlp Toker, Jul 11, 2006
  7. Andreas EricssonJul 11, 2006
  8. Johannes SchindelinJul 11, 2006
  9. Alp TokerJul 11, 2006
  10. Johannes SchindelinJul 11, 2006
  11. Petr BaudisJul 11, 2006
  12. Alex RiesenJul 12, 2006
  13. Petr BaudisJul 11, 2006
  14. Junio C HamanoJul 11, 2006
  15. Martin LanghoffJul 11, 2006
  16. Junio C HamanoJul 11, 2006
  17. Pavel RoskinJul 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.