diff options
author | Nicolas Vigier <boklm@mars-attacks.org> | 2014-02-01 02:18:02 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-03 12:13:44 -0800 |
commit | 2f9dc1fb529662e157c53c7d91e5f75e0f72c6ea (patch) | |
tree | c084fe58e7e9a7d29f72a880006db0336d61462e /sha1-array.c | |
parent | am: add the --gpg-sign option (diff) | |
download | tgif-2f9dc1fb529662e157c53c7d91e5f75e0f72c6ea.tar.xz |
rebase: remove useless arguments check
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>
Diffstat (limited to 'sha1-array.c')
0 files changed, 0 insertions, 0 deletions