Re: [PATCH v2 2/2] worktree: add per-worktree config files

2018-09-30 Thread Duy Nguyen
On Sun, Sep 30, 2018 at 9:24 AM Eric Sunshine wrote: > > On Sun, Sep 30, 2018 at 3:16 AM Duy Nguyen wrote: > > On Sun, Sep 30, 2018 at 6:33 AM Eric Sunshine > > wrote: > > > > diff --git a/builtin/config.c b/builtin/config.c > > > > @@ -645,7 +649,20 @@ int cmd_config(int argc, const char **arg

Re: [PATCH v2 2/2] worktree: add per-worktree config files

2018-09-30 Thread Eric Sunshine
On Sun, Sep 30, 2018 at 3:16 AM Duy Nguyen wrote: > On Sun, Sep 30, 2018 at 6:33 AM Eric Sunshine wrote: > > > diff --git a/builtin/config.c b/builtin/config.c > > > @@ -645,7 +649,20 @@ int cmd_config(int argc, const char **argv, const > > > char *prefix) > > > + else if (use_worktree_con

Re: [PATCH v2 2/2] worktree: add per-worktree config files

2018-09-30 Thread Duy Nguyen
On Sun, Sep 30, 2018 at 6:33 AM Eric Sunshine wrote: > > diff --git a/builtin/config.c b/builtin/config.c > > @@ -645,7 +649,20 @@ int cmd_config(int argc, const char **argv, const char > > *prefix) > > + else if (use_worktree_config) { > > + struct worktree **worktrees = get_

Re: [PATCH v2 2/2] worktree: add per-worktree config files

2018-09-29 Thread Eric Sunshine
On Sat, Sep 29, 2018 at 11:30 AM Nguyễn Thái Ngọc Duy wrote: > A new repo extension is added, worktreeConfig. When it is present: > [...] > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > diff --git a/Documentation/config.txt b/Documentation/config.txt > @@ -2,8 +2,9 @@ CONFIGURATION FILE > The Git

[PATCH v2 2/2] worktree: add per-worktree config files

2018-09-29 Thread Nguyễn Thái Ngọc Duy
A new repo extension is added, worktreeConfig. When it is present: - Repository config reading by default includes $GIT_DIR/config _and_ $GIT_DIR/config.worktree. "config" file remains shared in multiple worktree setup. - The special treatment for core.bare and core.worktree, to stay e