From: Junio C Hamano <gitster@pobox.com>
To: Brian Downing <bdowning@lavos.net>
Cc: git@vger.kernel.org, Martin Langhoff <martin.langhoff@gmail.com>
Subject: Re: [PATCH] cvsserver: Fix for work trees
Date: Wed, 08 Aug 2007 22:45:48 -0700 [thread overview]
Message-ID: <7v1wedz2er.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <1186633570700-git-send-email-bdowning@lavos.net> (Brian Downing's message of "Wed, 8 Aug 2007 23:26:10 -0500")
Hmmmmm....
This is a good fix to adjust to the new world order introduced
by Dscho's rewrite of work-tree stuff, where the rules are:
* When GIT_DIR is set and GIT_WORK_TREE is not, GIT_DIR is used
to read config file, to figure out core.worktree. When
core.worktree is not set, a complicated algorithm is used to
figure out the top of the working tree based on the value of
GIT_DIR, and this can sometimes figure out that you are in a
subdirectory of the working tree. In such a case, you are in
the working tree, but not necessarily at the top.
* Otherwise, commands that require to have working tree now
barf. Earlier they always and consistently treated that your
$cwd is the top of working tree and did not barf.
This new world order is probably an improvement, and if the
rules were like this from the beginning, it would have been
much nicer. However, this _is_ a change of semantics in the
middle of the road, and probably we will see many fallouts like
this. Unfortunate... I am torn between a cleaner semantics and
the short-term pain...
next prev parent reply other threads:[~2007-08-09 5:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-09 4:26 [PATCH] cvsserver: Fix for work trees Brian Downing
2007-08-09 5:45 ` Junio C Hamano [this message]
2007-08-09 8:45 ` Johannes Schindelin
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=7v1wedz2er.fsf@assigned-by-dhcp.cox.net \
--to=gitster@pobox.com \
--cc=bdowning@lavos.net \
--cc=git@vger.kernel.org \
--cc=martin.langhoff@gmail.com \
/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).