Re: [PATCH 4/6] worktree move: accept destination as directory

2017-04-20 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Similar to "mv a b/", which is actually "mv a b/a", we extract basename > of source worktree and create a directory of the same name at > destination if dst path is a directory. > > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > builtin/worktree.c | 19 +

[PATCH 4/6] worktree move: accept destination as directory

2017-04-20 Thread Nguyễn Thái Ngọc Duy
Similar to "mv a b/", which is actually "mv a b/a", we extract basename of source worktree and create a directory of the same name at destination if dst path is a directory. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/worktree.c | 19 ++- 1 file changed, 18 insertions(+), 1 d

[PATCH 4/6] worktree move: accept destination as directory

2017-01-08 Thread Nguyễn Thái Ngọc Duy
Similar to "mv a b/", which is actually "mv a b/a", we extract basename of source worktree and create a directory of the same name at destination if dst path is a directory. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/worktree.c | 19 ++- 1 file changed, 18 insertions(+), 1 d