On 02/06, Duy Nguyen wrote:
> On Tue, Feb 6, 2018 at 3:23 AM, Thomas Gummerer wrote:
> > On 02/05, Duy Nguyen wrote:
> >> On Sun, Feb 04, 2018 at 10:13:05PM +, Thomas Gummerer wrote:
> >> > - if (opts->new_branch)
> >> > + if (opts->checkout_existing_branch)
> >> > + fprintf(stde
On Tue, Feb 6, 2018 at 3:23 AM, Thomas Gummerer wrote:
> On 02/05, Duy Nguyen wrote:
>> On Sun, Feb 04, 2018 at 10:13:05PM +, Thomas Gummerer wrote:
>> > - if (opts->new_branch)
>> > + if (opts->checkout_existing_branch)
>> > + fprintf(stderr, _(", checking out existing branch '%
On 02/05, Duy Nguyen wrote:
> On Sun, Feb 04, 2018 at 10:13:05PM +, Thomas Gummerer wrote:
> > - if (opts->new_branch)
> > + if (opts->checkout_existing_branch)
> > + fprintf(stderr, _(", checking out existing branch '%s'"),
> > + refname);
> > + else if (opts-
Duy Nguyen writes:
> On Sun, Feb 04, 2018 at 10:13:05PM +, Thomas Gummerer wrote:
>> -if (opts->new_branch)
>> +if (opts->checkout_existing_branch)
>> +fprintf(stderr, _(", checking out existing branch '%s'"),
>> +refname);
>> +else if (opts->new_br
On Sun, Feb 04, 2018 at 10:13:05PM +, Thomas Gummerer wrote:
> - if (opts->new_branch)
> + if (opts->checkout_existing_branch)
> + fprintf(stderr, _(", checking out existing branch '%s'"),
> + refname);
> + else if (opts->new_branch)
> f
Currently 'git worktree add ' creates a new branch named after the
basename of the path by default. If a branch with that name already
exists, the command refuses to do anything, unless the '--force' option
is given.
However we can do a little better than that, and check the branch out if
it is n
6 matches
Mail list logo