Re: [PATCH v2 3/8] refs: new ref types to make per-worktree refs visible to all worktrees

2018-10-06 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > diff --git a/refs/files-backend.c b/refs/files-backend.c > index 2dd77f9485..9ca2a3706c 100644 > --- a/refs/files-backend.c > +++ b/refs/files-backend.c > ... > case REF_TYPE_PSEUDOREF: > strbuf_addf(sb, "%s/logs/%s", refs->gitdir, refname); >

Re: [PATCH v2 3/8] refs: new ref types to make per-worktree refs visible to all worktrees

2018-09-29 Thread Eric Sunshine
On Sat, Sep 29, 2018 at 3:10 PM Nguyễn Thái Ngọc Duy wrote: > The main worktree has to be treated specially because well.. it's Nit: s/well../well.../ > special from the beginning. So HEAD from the main worktree is > acccessible via the name "main-worktree/HEAD" instead of >

[PATCH v2 3/8] refs: new ref types to make per-worktree refs visible to all worktrees

2018-09-29 Thread Nguyễn Thái Ngọc Duy
One of the problems with multiple worktree is accessing per-worktree refs of one worktree from another worktree. This was sort of solved by multiple ref store, where the code can open the ref store of another worktree and has access to the ref space of that worktree. The problem with this is