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

2018-09-25 Thread Stefan Beller
On Tue, Sep 25, 2018 at 9:55 AM Duy Nguyen wrote: > > And with that said, I wonder if the "local" part should be feature agnostic, > > or if we want to be "local" for worktrees, "local" for remotes, "local" > > for submodules (i.e. our own refs vs submodule refs). > > You lost me here. Yeah, me

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

2018-09-25 Thread Duy Nguyen
On Tue, Sep 25, 2018 at 6:24 PM Stefan Beller wrote: > > > That sounds dangerous to me. There is already a concept of > > > local and remote-tracking branches. So I would think that local > > > may soon become an overused word, (just like "index" today or > > > "recursive" to a lesser extend). >

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

2018-09-25 Thread Stefan Beller
On Tue, Sep 25, 2018 at 8:36 AM Duy Nguyen wrote: > > On Tue, Sep 25, 2018 at 4:35 AM Stefan Beller wrote: > > > > On Sat, Sep 22, 2018 at 11:05 AM Nguyễn Thái Ngọc Duy > > wrote: > > > > > > When multiple worktrees are used, we need rules to determine if > > > something belongs to one

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

2018-09-25 Thread Duy Nguyen
On Tue, Sep 25, 2018 at 4:35 AM Stefan Beller wrote: > > On Sat, Sep 22, 2018 at 11:05 AM Nguyễn Thái Ngọc Duy > 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

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

2018-09-24 Thread Stefan Beller
On Sat, Sep 22, 2018 at 11:05 AM Nguyễn Thái Ngọc Duy 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 2/8] Add a place for (not) sharing stuff between worktrees

2018-09-23 Thread Eric Sunshine
On Sat, Sep 22, 2018 at 2:05 PM Nguyễn Thái Ngọc Duy 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: > [...] > Signed-off-by: Nguyễn Thái Ngọc

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

2018-09-22 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