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

Re: [Q] Tell Git to follow symlinks?

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Feb 25, 2008, 10:06 UTC
Message-ID
<vpqtzjxbba3.fsf@bauges.imag.fr>
In-Reply-To
<m3k5ktbep1.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 7 quoted lines
> "Alexander Gladysh" <agladysh@gmail.com> writes:
>
>> I thought to construct my repo of the number of symlinks to other
>> places, but apparently Git does not follow any symlinks.
>
> Git stores symlinks as symlinks. Changing that (adding for example
> core.followSymlinks) would require quite a bit of surgery.

In particular, this would raise the question of what to do when writting to a symlink. Following symlinks when doing a checkout or a merge could mean to allow git to write outside its working tree, which is problematic security-wise.

-- 
Matthieu
Previous: Jakub Narebski
Message 6 of 6 in “[Q] Tell Git to follow symlinks?”
  1. Alexander GladyshFeb 24, 2008
  2. Remi VanicatFeb 24, 2008
  3. Alexander GladyshFeb 24, 2008
  4. David TweedFeb 25, 2008
  5. Jakub NarebskiFeb 25, 2008
  6. Matthieu MoyFeb 25, 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.