From: "Neal Kreitzinger" <neal@rsss.com>
To: git@vger.kernel.org
Subject: Re: when does git start caring about symlinks?
Date: Wed, 24 Nov 2010 13:48:13 -0600 [thread overview]
Message-ID: <icjq8q$519$1@dough.gmane.org> (raw)
In-Reply-To: AANLkTi=O0pZ97kRt0jGfy20znfvfp3UTydTBn_aMBxE+@mail.gmail.com
>"Nguyen Thai Ngoc Duy" <pclouds@gmail.com> wrote in message
> >news:AANLkTi=O0pZ97kRt0jGfy20znfvfp3UTydTBn_aMBxE+@mail.gmail.com...
>On Wed, Nov 24, 2010 at 6:50 AM, Neal Kreitzinger <neal@rsss.com> wrote:
>> I have a question on how symlinks work and at what point git starts
>> caring
>> about them. If dirA/repoA/.git has no symlinks and I copy it to
>> dirB/repoB/.git (ie. cp -rp /dirA/repoA/.git /dirB/repoB/.git), but /dirB
>> is
>> a symlink to /x/dirB does that mean that repoB contains symlinks (I
>> suspect
>> that repoB may be made up of all symlinks at this point)? In other words,
>> if I parallel test repoA and repoB am I running a true parallel test or
>> are
>> the repos different because repoA has no symlinks and repoB has symlinks?
>
>There should be no difference between repoA and repoB until you make
>changes. Symlinks outside worktree do not matter. Symlinks inside .git
>dir may cause problems when you start updating repos. But I don't
>think recent git creates symlinks. There are other forms of symlinks
>in .git dir though: .git as a file that points to real .git dir, or
>.git/info/alternates comes to mind.
>--
>Duy
Thank you for clarifying this for me. I see that I mistyped my copy
command. It's actually "cp -rp /dirA/repoA /dirB/repoB", but you understood
what I meant anyway when you stated "Symlinks outside worktree do not
matter". :)
v/r,
Neal
prev parent reply other threads:[~2010-11-24 19:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 23:50 when does git start caring about symlinks? Neal Kreitzinger
2010-11-24 14:55 ` Nguyen Thai Ngoc Duy
2010-11-24 19:48 ` Neal Kreitzinger [this message]
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='icjq8q$519$1@dough.gmane.org' \
--to=neal@rsss.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).