Files
git/builtin
Matthieu Moy bca3969534 checkout: proper error message on 'git checkout foo bar --'
The previous code was detecting the presence of "--" by looking only at
argument 1. As a result, "git checkout foo bar --" was interpreted as an
ambiguous file/revision list, and errored out with:

error: pathspec 'foo' did not match any file(s) known to git.
error: pathspec 'bar' did not match any file(s) known to git.
error: pathspec '--' did not match any file(s) known to git.

This patch fixes it by walking through the argument list to find the
"--", and now complains about the number of references given.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-10-18 12:57:16 -07:00
..
2013-04-26 15:28:09 -07:00
2013-04-23 11:22:48 -07:00
2013-04-15 11:04:44 -07:00
2012-09-17 15:59:34 -07:00
2013-01-23 21:19:10 -08:00
2012-11-20 10:32:10 -08:00
2013-02-01 12:40:16 -08:00
2012-09-27 17:57:26 -07:00
2013-04-03 09:18:01 -07:00
2013-04-26 15:28:39 -07:00
2013-05-08 15:34:33 -07:00
2012-10-25 06:42:27 -04:00
2012-10-29 03:08:30 -04:00
2012-10-25 06:42:27 -04:00
2013-01-16 12:48:22 -08:00