diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2013-10-18 11:25:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-18 12:56:06 -0700 |
commit | a047fafc7866cc4087201e284dc1f53e8f9a32d5 (patch) | |
tree | a5749d3b3c5c801c75cc74b06770a0395a63937a /Documentation/git-credential-store.txt | |
parent | Merge branch 'maint-1.8.2' into maint-1.8.3 (diff) | |
download | tgif-a047fafc7866cc4087201e284dc1f53e8f9a32d5.tar.xz |
checkout: allow dwim for branch creation for "git checkout $branch --"
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 checkout $branch --
=> refuses to create the $branch
This patch allows the second form to create $branch, and since the -- is
provided, it does not look for file named $branch.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-credential-store.txt')
0 files changed, 0 insertions, 0 deletions