Re: [PATCH v2 03/12] worktree.c: make find_shared_symref() return struct worktree *

2016-04-21 Thread Eric Sunshine
On Wed, Apr 20, 2016 at 9:24 AM, Nguyễn Thái Ngọc Duy wrote: > This gives the caller more information and they can answer things like, > "is it the main worktree" or "is it the current worktree". The latter > question is needed for the "checkout a rebase branch" case later. > > Signed-off-by: Nguy

Re: [PATCH v2 03/12] worktree.c: make find_shared_symref() return struct worktree *

2016-04-20 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This gives the caller more information and they can answer things like, > "is it the main worktree" or "is it the current worktree". The latter > question is needed for the "checkout a rebase branch" case later. That makes good sense. > diff --git a/worktree.h b/

[PATCH v2 03/12] worktree.c: make find_shared_symref() return struct worktree *

2016-04-20 Thread Nguyễn Thái Ngọc Duy
This gives the caller more information and they can answer things like, "is it the main worktree" or "is it the current worktree". The latter question is needed for the "checkout a rebase branch" case later. Signed-off-by: Nguyễn Thái Ngọc Duy --- branch.c | 9 + builtin/branch.