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
@ -165,15 +165,15 @@ static int help_callback(const struct option *opt, const char *arg, int unset)
|
||||
}
|
||||
|
||||
static const struct option show_ref_options[] = {
|
||||
OPT_BOOLEAN(0, "tags", &tags_only, N_("only show tags (can be combined with heads)")),
|
||||
OPT_BOOLEAN(0, "heads", &heads_only, N_("only show heads (can be combined with tags)")),
|
||||
OPT_BOOLEAN(0, "verify", &verify, N_("stricter reference checking, "
|
||||
OPT_BOOL(0, "tags", &tags_only, N_("only show tags (can be combined with heads)")),
|
||||
OPT_BOOL(0, "heads", &heads_only, N_("only show heads (can be combined with tags)")),
|
||||
OPT_BOOL(0, "verify", &verify, N_("stricter reference checking, "
|
||||
"requires exact ref path")),
|
||||
OPT_HIDDEN_BOOL('h', NULL, &show_head,
|
||||
N_("show the HEAD reference, even if it would be filtered out")),
|
||||
OPT_BOOLEAN(0, "head", &show_head,
|
||||
OPT_BOOL(0, "head", &show_head,
|
||||
N_("show the HEAD reference, even if it would be filtered out")),
|
||||
OPT_BOOLEAN('d', "dereference", &deref_tags,
|
||||
OPT_BOOL('d', "dereference", &deref_tags,
|
||||
N_("dereference tags into object IDs")),
|
||||
{ OPTION_CALLBACK, 's', "hash", &abbrev, N_("n"),
|
||||
N_("only show SHA1 hash using <n> digits"),
|
||||
|
Reference in New Issue
Block a user