Re: [PATCH/POC 2/7] Add new environment variable $GIT_SUPER_DIR

2013-12-14 Thread Junio C Hamano
Duy Nguyen writes: > The exception list could be equally long (most of them are *_HEAD). > .git is also used for temporary files with mkstemp, but I think that's > safe for sharing. What could break is when people add a new local > *_HEAD and forget to update the exception list. Sensible; it may

Re: [PATCH/POC 2/7] Add new environment variable $GIT_SUPER_DIR

2013-12-13 Thread Duy Nguyen
On Sat, Dec 14, 2013 at 1:12 AM, Junio C Hamano wrote: >> diff --git a/path.c b/path.c >> index eda9176..86a7c15 100644 >> --- a/path.c >> +++ b/path.c >> @@ -75,6 +75,16 @@ static void adjust_git_path(char *buf, int git_dir_len) >> strcpy(buf, get_index_file()); >> else if (gi

Re: [PATCH/POC 2/7] Add new environment variable $GIT_SUPER_DIR

2013-12-13 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This is the base for git-new-workdir integration. The git-new-workdir > script creates a separate worktree that shares everything except > worktree-related stuff. The sharing is eanbled by this new env > variable. > > In the new worktree, both variables are set at

[PATCH/POC 2/7] Add new environment variable $GIT_SUPER_DIR

2013-12-11 Thread Nguyễn Thái Ngọc Duy
This is the base for git-new-workdir integration. The git-new-workdir script creates a separate worktree that shares everything except worktree-related stuff. The sharing is eanbled by this new env variable. In the new worktree, both variables are set at the same time, GIT_DIR and GIT_SUPER_DIR. S