revert: use the OPT_CMDMODE for parsing, reducing code
authorStefan Beller <stefanbeller@googlemail.com>
Sat, 3 Aug 2013 11:51:26 +0000 (13:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Aug 2013 15:37:12 +0000 (08:37 -0700)
The revert command comes with their own implementation of checking
for exclusiveness of parameters.
Now that the OPT_CMDMODE is in place, we can also rely on that macro
instead of cooking that solution for each command itself.

This commit also replaces OPT_BOOLEAN, which was deprecated by b04ba2bb
(parse-options: deprecate OPT_BOOLEAN, 2011-09-27). Instead OPT_BOOL is
used.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found