From: Andreas Ericsson <ae@op5.se>
To: Alp Toker <alp@atoker.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Install built-ins as symlinks
Date: Tue, 11 Jul 2006 13:15:14 +0200 [thread overview]
Message-ID: <44B38842.10609@op5.se> (raw)
In-Reply-To: <11526131792377-git-send-email-alp@atoker.com>
Alp Toker wrote:
> 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.
>
> $(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
next prev parent reply other threads:[~2006-07-11 11:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 10:19 [PATCH] Typo fix Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Send XHTML as 'application/xhtml+xml' where possible Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Include a site name in page titles Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Use the git binary in the search path by default Alp Toker
2006-07-11 10:19 ` [PATCH] git-send-email: Remove redundant Reply-To header Alp Toker
2006-07-11 10:19 ` [PATCH] Install built-ins as symlinks Alp Toker
2006-07-11 11:15 ` Andreas Ericsson [this message]
2006-07-11 14:16 ` Johannes Schindelin
2006-07-11 14:58 ` Alp Toker
2006-07-11 18:02 ` Johannes Schindelin
2006-07-11 18:48 ` Petr Baudis
2006-07-12 0:01 ` Alex Riesen
2006-07-11 18:36 ` Petr Baudis
2006-07-11 19:56 ` [PATCH] gitweb: Use the git binary in the search path by default Junio C Hamano
2006-07-11 11:48 ` [PATCH] gitweb: Include a site name in page titles Martin Langhoff
2006-07-11 19:48 ` Junio C Hamano
2006-07-11 22:37 ` [PATCH] Typo fix Pavel Roskin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B38842.10609@op5.se \
--to=ae@op5.se \
--cc=alp@atoker.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).