public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox•com>
To: git@vger•kernel.org
Subject: Re: [PATCH] Always copy template files (no symlinking)
Date: Tue, 22 Apr 2008 10:05:01 -0700	[thread overview]
Message-ID: <7vprshyg5e.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080422140359.GA9590@roadkill.foldr.org> (Michael Weber's message of "Tue, 22 Apr 2008 16:03:59 +0200")

Michael Weber <michaelw@foldr•org> writes:

> Previously, git would readlink(2) template files that are symlinks,
> and then symlink(2) the result into .git/.  This does not work for
> relative symlinks (as produced by, e.g., encap), and is probably not a
> good idea either: it is an irrelevant detail that a file in the
> template directory is symlinked.

This was very deliberately done to allow a relative symlink that points at
e.g. ../../hooks/pre-commit with .git/hooks/pre-commit.  IOW, "use what
the project suggests".

  reply	other threads:[~2008-04-22 17:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22 14:03 [PATCH] Always copy template files (no symlinking) Michael Weber
2008-04-22 17:05 ` Junio C Hamano [this message]
2008-04-22 19:12   ` Michael Weber

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=7vprshyg5e.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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