Re: [PATCH v3 2/8] Add a place for (not) sharing stuff between worktrees

2018-10-29 Thread Duy Nguyen
On Mon, Oct 22, 2018 at 6:28 AM Junio C Hamano wrote: > > When multiple worktrees are used, we need rules to determine if > > something belongs to one worktree or all of them. Instead of keeping > > adding rules when new stuff comes (*), have a generic rule: > > > > - Inside $GIT_DIR, which is

Re: [PATCH v3 2/8] Add a place for (not) sharing stuff between worktrees

2018-10-22 Thread SZEDER Gábor
On Sun, Oct 21, 2018 at 10:08:53AM +0200, Nguyễn Thái Ngọc Duy wrote: > diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt > index e2ee9fc21b..a50fbf8094 100644 > --- a/Documentation/git-worktree.txt > +++ b/Documentation/git-worktree.txt > @@ -204,6 +204,22 @@ working

Re: [PATCH v3 2/8] Add a place for (not) sharing stuff between worktrees

2018-10-21 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Subject: Re: [PATCH v3 2/8] Add a place for (not) sharing stuff between > worktrees "a place"? Missing "in $GIR_DIR" in the descrition made me read the above three times before getting what it wanted to say. My attempt to im

[PATCH v3 2/8] Add a place for (not) sharing stuff between worktrees

2018-10-21 Thread Nguyễn Thái Ngọc Duy
When multiple worktrees are used, we need rules to determine if something belongs to one worktree or all of them. Instead of keeping adding rules when new stuff comes (*), have a generic rule: - Inside $GIT_DIR, which is per-worktree by default, add $GIT_DIR/common which is always shared. New