Re: [PATCH v4 2/4] worktree: add --[no-]track option to the add subcommand

2017-11-25 Thread Thomas Gummerer
On 11/24, Junio C Hamano wrote: > Thomas Gummerer writes: > > > diff --git a/t/t2025-worktree-add.sh b/t/t2025-worktree-add.sh > > index b5c47ac602..53042ce565 100755 > > --- a/t/t2025-worktree-add.sh > > +++ b/t/t2025-worktree-add.sh > > @@ -313,5 +313,60 @@

Re: [PATCH v4 2/4] worktree: add --[no-]track option to the add subcommand

2017-11-23 Thread Junio C Hamano
Thomas Gummerer writes: > diff --git a/t/t2025-worktree-add.sh b/t/t2025-worktree-add.sh > index b5c47ac602..53042ce565 100755 > --- a/t/t2025-worktree-add.sh > +++ b/t/t2025-worktree-add.sh > @@ -313,5 +313,60 @@ test_expect_success 'checkout a branch under bisect' ' >

[PATCH v4 2/4] worktree: add --[no-]track option to the add subcommand

2017-11-22 Thread Thomas Gummerer
Currently 'git worktree add' sets up tracking branches if '' is a remote tracking branch, and doesn't set them up otherwise, as is the default for 'git branch'. This may or may not be what the user wants. Allow overriding this behaviour with a --[no-]track flag that gets passed through to 'git