Merge branch 'rs/name-rev-use-opt-hidden-bool' into next
Simplify use of parse-options API a bit. * rs/name-rev-use-opt-hidden-bool: name-rev: use OPT_HIDDEN_BOOL for --peel-tag
This commit is contained in:
@ -582,12 +582,8 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
|
|||||||
OPT_BOOL(0, "undefined", &allow_undefined, N_("allow to print `undefined` names (default)")),
|
OPT_BOOL(0, "undefined", &allow_undefined, N_("allow to print `undefined` names (default)")),
|
||||||
OPT_BOOL(0, "always", &always,
|
OPT_BOOL(0, "always", &always,
|
||||||
N_("show abbreviated commit object as fallback")),
|
N_("show abbreviated commit object as fallback")),
|
||||||
{
|
OPT_HIDDEN_BOOL(0, "peel-tag", &peel_tag,
|
||||||
/* A Hidden OPT_BOOL */
|
N_("dereference tags in the input (internal use)")),
|
||||||
OPTION_SET_INT, 0, "peel-tag", &peel_tag, NULL,
|
|
||||||
N_("dereference tags in the input (internal use)"),
|
|
||||||
PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1,
|
|
||||||
},
|
|
||||||
OPT_END(),
|
OPT_END(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user