{"thread":{"id":"25826","subject":"when does git start caring about symlinks?","startedAt":"2010-11-23T23:50:31Z","lastAt":"2010-11-24T19:48:13Z","messageCount":3,"participants":["Neal Kreitzinger","Nguyen Thai Ngoc Duy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"156457","messageId":"ichk2q$bbu$1@dough.gmane.org","threadId":"25826","inReplyTo":null,"subject":"when does git start caring about symlinks?","fromName":"Neal Kreitzinger","fromEmail":"neal@rsss.com","sentAt":"2010-11-23T23:50:31Z","receivedAt":"2010-11-23T23:50:31Z","isPatch":false,"sender":{"key":"neal@rsss.com","avatar":null},"body":"I have a question on how symlinks work and at what point git starts caring \nabout them.  If dirA/repoA/.git has no symlinks and I copy it to \ndirB/repoB/.git (ie. cp -rp /dirA/repoA/.git /dirB/repoB/.git), but /dirB is \na symlink to /x/dirB does that mean that repoB contains symlinks (I suspect \nthat repoB may be made up of all symlinks at this point)?  In other words, \nif I parallel test repoA and repoB am I running a true parallel test or are \nthe repos different because repoA has no symlinks and repoB has symlinks?\n\nv/r,\nNeal \n"},{"id":"156485","messageId":"AANLkTi=O0pZ97kRt0jGfy20znfvfp3UTydTBn_aMBxE+@mail.gmail.com","threadId":"25826","inReplyTo":"ichk2q$bbu$1@dough.gmane.org","subject":"Re: when does git start caring about symlinks?","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2010-11-24T14:55:49Z","receivedAt":"2010-11-24T14:55:49Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Wed, Nov 24, 2010 at 6:50 AM, Neal Kreitzinger <neal@rsss.com> wrote:\n> I have a question on how symlinks work and at what point git starts caring\n> about them.  If dirA/repoA/.git has no symlinks and I copy it to\n> dirB/repoB/.git (ie. cp -rp /dirA/repoA/.git /dirB/repoB/.git), but /dirB is\n> a symlink to /x/dirB does that mean that repoB contains symlinks (I suspect\n> that repoB may be made up of all symlinks at this point)?  In other words,\n> if I parallel test repoA and repoB am I running a true parallel test or are\n> the repos different because repoA has no symlinks and repoB has symlinks?\n\nThere should be no difference between repoA and repoB until you make\nchanges. Symlinks outside worktree do not matter. Symlinks inside .git\ndir may cause problems when you start updating repos. But I don't\nthink recent git creates symlinks. There are other forms of symlinks\nin .git dir though: .git as a file that points to real .git dir, or\n.git/info/alternates comes to mind.\n-- \nDuy\n"},{"id":"156492","messageId":"icjq8q$519$1@dough.gmane.org","threadId":"25826","inReplyTo":"AANLkTi=O0pZ97kRt0jGfy20znfvfp3UTydTBn_aMBxE+@mail.gmail.com","subject":"Re: when does git start caring about symlinks?","fromName":"Neal Kreitzinger","fromEmail":"neal@rsss.com","sentAt":"2010-11-24T19:48:13Z","receivedAt":"2010-11-24T19:48:13Z","isPatch":false,"sender":{"key":"neal@rsss.com","avatar":null},"body":"\n>\"Nguyen Thai Ngoc Duy\" <pclouds@gmail.com> wrote in message \n> >news:AANLkTi=O0pZ97kRt0jGfy20znfvfp3UTydTBn_aMBxE+@mail.gmail.com...\n>On Wed, Nov 24, 2010 at 6:50 AM, Neal Kreitzinger <neal@rsss.com> wrote:\n>> I have a question on how symlinks work and at what point git starts \n>> caring\n>> about them. If dirA/repoA/.git has no symlinks and I copy it to\n>> dirB/repoB/.git (ie. cp -rp /dirA/repoA/.git /dirB/repoB/.git), but /dirB \n>> is\n>> a symlink to /x/dirB does that mean that repoB contains symlinks (I \n>> suspect\n>> that repoB may be made up of all symlinks at this point)? In other words,\n>> if I parallel test repoA and repoB am I running a true parallel test or \n>> are\n>> the repos different because repoA has no symlinks and repoB has symlinks?\n>\n>There should be no difference between repoA and repoB until you make\n>changes. Symlinks outside worktree do not matter. Symlinks inside .git\n>dir may cause problems when you start updating repos. But I don't\n>think recent git creates symlinks. There are other forms of symlinks\n>in .git dir though: .git as a file that points to real .git dir, or\n>.git/info/alternates comes to mind.\n>-- \n>Duy\n\nThank you for clarifying this for me.  I see that I mistyped my copy \ncommand.  It's actually \"cp -rp /dirA/repoA /dirB/repoB\", but you understood \nwhat I meant anyway when you stated \"Symlinks outside worktree do not \nmatter\".  :)\n\nv/r,\nNeal \n"}]}