From: Joey Hess <joey@kitenet.net>
To: git@vger.kernel.org
Subject: Re: symlinked working tree gotcha
Date: Mon, 25 Apr 2011 15:09:38 -0400 [thread overview]
Message-ID: <20110425190938.GA24744@gnu.kitenet.net> (raw)
In-Reply-To: <7vpqoajiz0.fsf@alter.siamese.dyndns.org>
[-- Attachment #1: Type: text/plain, Size: 850 bytes --]
Junio C Hamano wrote:
> Two 'foo's makes it confusing to read so let's rephrase.
>
> Given this structure:
>
> /tmp/foo/
> /tmp/foo/.git/
> /tmp/foo/hello
> /tmp/sym@ -> foo
>
> when you refer to /tmp/sym/hello where $(/bin/pwd) is /tmp/foo, should it
> be considered to be within the bounds of the working tree that is governed
> by your current $GIT_DIR (which is ".git")?
Hmm, my /bin/pwd does not return "/tmp/foo" when I've cd'd to "/tmp/sym".
> The answer is "perhaps yes, ideally speaking, but does it really matter in
> practice, or is it just nice to have?".
FWIW, my motivation for using the absolute path was that I wanted to
always add $GIT_WORK_TREE/hello, but the add could be run when in a
subdirectory of the repository, so "git add hello" might not add the
right file.
--
see shy jo
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2011-04-25 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-24 16:58 symlinked working tree gotcha Joey Hess
2011-04-25 18:15 ` Junio C Hamano
2011-04-25 19:09 ` Joey Hess [this message]
2011-04-26 3:41 ` Jay Soffian
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=20110425190938.GA24744@gnu.kitenet.net \
--to=joey@kitenet.net \
--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).