Re: [PATCH v4 3/4] worktree: make add dwim

2017-11-23 Thread Junio C Hamano
Thomas Gummerer writes: > Currently 'git worktree add ', errors out when 'branch' > is not a local branch. It has no additional dwim'ing features that one > might expect. > > Make it behave more like 'git checkout ' when the branch doesn't > exist locally, but a remote

[PATCH v4 3/4] worktree: make add dwim

2017-11-22 Thread Thomas Gummerer
Currently 'git worktree add ', errors out when 'branch' is not a local branch. It has no additional dwim'ing features that one might expect. Make it behave more like 'git checkout ' when the branch doesn't exist locally, but a remote tracking branch uniquely matches the desired branch name,