Re: [PATCH v2 13/23] worktree: introduce add command

2015-07-06 Thread Duy Nguyen
On Sat, Jul 4, 2015 at 3:54 PM, Eric Sunshine sunsh...@sunshineco.com wrote: On Fri, Jul 3, 2015 at 10:53 PM, Duy Nguyen pclo...@gmail.com wrote: On Sat, Jul 4, 2015 at 7:17 AM, Eric Sunshine sunsh...@sunshineco.com wrote: COMMANDS +add path branch:: + +Check out `branch` into

Re: [PATCH v2 13/23] worktree: introduce add command

2015-07-05 Thread Eric Sunshine
On Fri, Jul 3, 2015 at 10:53 PM, Duy Nguyen pclo...@gmail.com wrote: On Sat, Jul 4, 2015 at 7:17 AM, Eric Sunshine sunsh...@sunshineco.com wrote: COMMANDS +add path branch:: + +Check out `branch` into a separate working directory, `path`, creating +`path` if necessary. The new

Re: [PATCH v2 13/23] worktree: introduce add command

2015-07-03 Thread Duy Nguyen
On Sat, Jul 4, 2015 at 7:17 AM, Eric Sunshine sunsh...@sunshineco.com wrote: COMMANDS +add path branch:: + +Check out `branch` into a separate working directory, `path`, creating +`path` if necessary. The new working directory is linked to the current +repository, sharing

[PATCH v2 13/23] worktree: introduce add command

2015-07-03 Thread Eric Sunshine
The plan is to relocate git checkout --to functionality to git worktree add. As a first step, introduce a bare-bones git-worktree add command along with documentation. At this stage, git worktree add merely invokes git checkout --to behind the scenes, but an upcoming patch will move the actual