Re: [PATCH v3 3/6] worktree.c: add is_main_worktree()

2016-05-31 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Main worktree _is_ different. You can lock a linked worktree but not the > main one, for example. Provide an API for checking that. You haven't defined what it means to "lock" a worktree, so that example does not sound convincing at all, until

[PATCH v3 3/6] worktree.c: add is_main_worktree()

2016-05-30 Thread Nguyễn Thái Ngọc Duy
Main worktree _is_ different. You can lock a linked worktree but not the main one, for example. Provide an API for checking that. Signed-off-by: Nguyễn Thái Ngọc Duy --- worktree.c | 5 + worktree.h | 5 + 2 files changed, 10 insertions(+) diff --git a/worktree.c