Jonathan Nieder writes:
> case 3: git checkout [--]
>
> If is a commit, [...]
>
> If is _not_ a commit, either "--" is present or
> is not a path, no -t nor -b was given, and [...]
>
> Otherwise, if "--" is present, treat it like case (1).
>
> Oth
Jonathan Nieder writes:
> Hi,
>
> Matthieu Moy wrote:
>
>> The "--" notation disambiguates files and branches, but as a side-effect
>> of the previous implementation, also disabled the branch auto-creation
>> when $branch does not exist.
>
> Hm. I am not sure that was just an implementation side
Hi,
Matthieu Moy wrote:
> The "--" notation disambiguates files and branches, but as a side-effect
> of the previous implementation, also disabled the branch auto-creation
> when $branch does not exist.
Hm. I am not sure that was just an implementation side-effect.
Normally 'git checkout --'
The "--" notation disambiguates files and branches, but as a side-effect
of the previous implementation, also disabled the branch auto-creation
when $branch does not exist.
A possible scenario is then:
git checkout $branch
=> fails if $branch is both a ref and a file, and suggests --
git checkou
4 matches
Mail list logo