author | Pierre Habouzit <madcoder@debian.org> | |
Wed, 23 Jul 2008 10:15:32 +0000 (12:15 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Jul 2008 19:09:47 +0000 (12:09 -0700) | ||
commit | f5242ebf0dcd858ae9c72f39aed9773696d7283d | |
tree | a35c765ccd4b19437be5025bdb984254763d4829 | tree | snapshot |
parent | 2d9c572578c72bd6691e80a9feed7d631baf007f | commit | diff |
git-checkout: fix command line parsing.
This fixes an issue when you use:
$ git checkout -- <path1> [<paths>...]
and that <path1> can also be understood as a reference. git-checkout
mistakenly understands this as the same as:
$ git checkout <path1> -- [<paths>...]
because parse-options was eating the '--' and the argument parser thought
he was parsing:
$ git checkout <path1> [<paths>...]
Where there indeed is an ambiguity
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This fixes an issue when you use:
$ git checkout -- <path1> [<paths>...]
and that <path1> can also be understood as a reference. git-checkout
mistakenly understands this as the same as:
$ git checkout <path1> -- [<paths>...]
because parse-options was eating the '--' and the argument parser thought
he was parsing:
$ git checkout <path1> [<paths>...]
Where there indeed is an ambiguity
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | diff | blob | history |