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

Re: [PATCH] Always copy template files (no symlinking)

From
MWMichael Weber <michaelw@foldr.org>
Date
Apr 22, 2008, 19:12 UTC
Message-ID
<30F967B1-A971-4F8B-A74D-4BDA8BB184B5@foldr.org>
In-Reply-To
<7vprshyg5e.fsf@gitster.siamese.dyndns.org>
[accidentally sent as PM]
On Apr 22, 2008, at 19:05 , Junio C Hamano wrote:
Show 14 quoted lines
> 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".

I see. How can I get the same functionality on a platform which does not support symlinks?

Cheers, Michael

Previous: Junio C Hamano
Message 3 of 3 in “Always copy template files (no symlinking)”
  1. Always copy template files (no symlinking)Michael Weber, Apr 22, 2008
  2. Junio C HamanoApr 22, 2008
  3. Michael WeberApr 22, 2008

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.