Re: [PATCH v4 2/4] submodule: update core.worktree using git-config

2016-07-22 Thread Duy Nguyen
On Thu, Jul 21, 2016 at 12:04 AM, Stefan Beller wrote: >> diff --git a/submodule.c b/submodule.c >> index abc2ac2..b912871 100644 >> --- a/submodule.c >> +++ b/submodule.c >> @@ -1128,7 +1128,9 @@ void connect_work_tree_and_git_dir(const char >> *work_tree, const char

Re: [PATCH v4 2/4] submodule: update core.worktree using git-config

2016-07-20 Thread Stefan Beller
On Wed, Jul 20, 2016 at 10:24 AM, Nguyễn Thái Ngọc Duy wrote: > To access a separate repository, the first step should be read its > config file to determine if this repository layout is supported or > not, or if we understand all repo extensions, of it is a linked > worktree.

[PATCH v4 2/4] submodule: update core.worktree using git-config

2016-07-20 Thread Nguyễn Thái Ngọc Duy
To access a separate repository, the first step should be read its config file to determine if this repository layout is supported or not, or if we understand all repo extensions, of it is a linked worktree. Only then should know where to update the config file. Unfortunately, our C code base is