Replace deprecated OPT_BOOLEAN by OPT_BOOL
This task emerged from b04ba2bb (parse-options: deprecate OPT_BOOLEAN,
2011-09-27). All occurrences of the respective variables have
been reviewed and none of them relied on the counting up mechanism,
but all of them were using the variable as a true boolean.
This patch does not change semantics of any command intentionally.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
4741edd549
commit
d5d09d4754
@ -268,10 +268,10 @@ static int ignore_unmatch = 0;
|
||||
static struct option builtin_rm_options[] = {
|
||||
OPT__DRY_RUN(&show_only, N_("dry run")),
|
||||
OPT__QUIET(&quiet, N_("do not list removed files")),
|
||||
OPT_BOOLEAN( 0 , "cached", &index_only, N_("only remove from the index")),
|
||||
OPT_BOOL( 0 , "cached", &index_only, N_("only remove from the index")),
|
||||
OPT__FORCE(&force, N_("override the up-to-date check")),
|
||||
OPT_BOOLEAN('r', NULL, &recursive, N_("allow recursive removal")),
|
||||
OPT_BOOLEAN( 0 , "ignore-unmatch", &ignore_unmatch,
|
||||
OPT_BOOL('r', NULL, &recursive, N_("allow recursive removal")),
|
||||
OPT_BOOL( 0 , "ignore-unmatch", &ignore_unmatch,
|
||||
N_("exit with a zero status even if nothing matched")),
|
||||
OPT_END(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user