Re: [long] worktree setup cases

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nguyen Thai Ngoc Duy
Date: Wednesday, October 20, 2010 - 6:46 pm

On Thu, Oct 21, 2010 at 2:07 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:

Let's see.


Yes, except that GIT_DIR can be detected early when cwd has not been
moved. When .git is found a file, cwd could have been changed.


Correct.


What do you mean by "under repository"? If the repo is /tmp/git/.git,
then cwd is at /tmp/git/.git?


Yes.


- Otherwise, move up one dir and repeat?


if GIT_WORK_TREE and core.worktree are still unset, we get a bare repo
here (or force it to be a bare repo), so yes, cwd should stay in
original cwd and prefix = NULL.


Yes.


I'm not really happy with this, which is why I wrote the
--cwd-to-worktree and --worktree-to-cwd patch. But this should be
enough for full-tree operations to work, so yes.


I think $GIT_WORK_TREE is relative to original cwd. Yes, core.worktree
should be relative to $GIT_DIR.


And filename output should also be relative to original cwd (except a
few special, like diff output).


Yes.
-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[long] worktree setup cases, Nguyen Thai Ngoc Duy, (Wed Oct 20, 1:59 am)
Re: [long] worktree setup cases, Jonathan Nieder, (Wed Oct 20, 12:07 pm)
Re: [long] worktree setup cases, Jonathan Nieder, (Wed Oct 20, 12:18 pm)
Re: [long] worktree setup cases, Junio C Hamano, (Wed Oct 20, 2:00 pm)
Re: [long] worktree setup cases, Nguyen Thai Ngoc Duy, (Wed Oct 20, 6:46 pm)
Re: [long] worktree setup cases, Nguyen Thai Ngoc Duy, (Wed Oct 20, 7:23 pm)
Re: [long] worktree setup cases, Jonathan Nieder, (Wed Oct 20, 8:30 pm)
Re: [long] worktree setup cases, Nguyen Thai Ngoc Duy, (Thu Oct 21, 5:50 am)
Re: [long] worktree setup cases, Jonathan Nieder, (Thu Oct 21, 9:01 am)
Re: [long] worktree setup cases, Enrico Weigelt, (Thu Oct 21, 11:51 am)
Re: [long] worktree setup cases, Enrico Weigelt, (Thu Oct 21, 12:01 pm)
Re: [long] worktree setup cases, Junio C Hamano, (Thu Oct 21, 4:06 pm)
Re: [long] worktree setup cases, Nguyen Thai Ngoc Duy, (Thu Oct 21, 5:34 pm)
Re: [long] worktree setup cases, Enrico Weigelt, (Thu Oct 21, 10:00 pm)
.git file (Re: [long] worktree setup cases), Jonathan Nieder, (Thu Oct 21, 10:28 pm)
Re: [long] worktree setup cases, Nguyen Thai Ngoc Duy, (Thu Oct 21, 10:36 pm)
Re: [long] worktree setup cases, Nguyen Thai Ngoc Duy, (Sat Oct 23, 3:12 am)