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

Re: [Q] Tell Git to follow symlinks?

From
DTDavid Tweed <david.tweed@gmail.com>
Date
Feb 25, 2008, 05:54 UTC
Message-ID
<e1dab3980802242154h721bd8a5x60b7f73d9fc3a2ef@mail.gmail.com>
In-Reply-To
<87zltq2xzn.dlv@maison.homelinux.org>
On Sun, Feb 24, 2008 at 3:08 PM, Remi Vanicat <vanicat@debian.org> wrote:
Show 12 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 simlinks.
>
>  I use "reverse" symlinks: the files i want to manage are replaced by
>  symlink to the file that is in then git repository:
>
>  my home contain:
>
>  .abbrev_defs -> .myconfig/abbrev_defs
>  .bash_logout -> .myconfig/bash_logout
[...]
>
>  and a .myconfig git repository that manage those file.

For configuration files I tend to actually physically copy them to a directory under the tree that I'm archiving using git, just because it feels slightly safer. If something git related goes wrong (probably due to my input) it can't, eg, stick an old, corrupted version of, eg, .bashrc in my home directory, which stops terminal login when I next reboot. (I had something similar happen when I actually had the live version of my archiving script being put into the archive. When I checked out a previous tree to look at something, an old buggy archiving script got checked out and created half a dozen corrupt commits I had to reset away.) Of course, the odds of anything like this happening in practice are quite small.

-- 
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"while having code so boring anyone can maintain it, use Python." --
attempted insult seen on slashdot
Previous: Alexander GladyshNext: Jakub Narebski
Message 4 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.