rebase: remove useless arguments check
authorNicolas Vigier <boklm@mars-attacks.org>
Sat, 1 Feb 2014 02:18:02 +0000 (02:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Feb 2014 20:13:44 +0000 (12:13 -0800)
Remove a check on the number of arguments for --onto and -x options.
It is not possible for $# to be <= 2 at this point :

- if --onto or -x has an argument, git rev-parse --parseopt will
provide something like this :
set -- --onto 'x' --
when parsing the "--onto" option, $# will be 3 or more if there are
other options.

- if --onto or -x doesn't have an argument, git rev-parse --parseopt
will exit with an error and display usage information.

Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found