diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-11-02 16:53:24 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-02 16:53:24 +0900 |
commit | f76827da0e54490b3c4778ce19947b91d6828495 (patch) | |
tree | db8e0fb49b1cceba51663bd6b6f41d4d63dd1729 | |
parent | 2fdfd7594f2ecfe50314ddd0caabc0a84197357e (diff) | |
parent | 078c42531e8d6e8c7bfaa1a52dca330f0eef5d94 (diff) | |
download | git-f76827da0e54490b3c4778ce19947b91d6828495.tar.gz |
Merge branch 'rs/name-rev-use-opt-hidden-bool' into maint-2.42
Simplify use of parse-options API a bit.
* rs/name-rev-use-opt-hidden-bool:
name-rev: use OPT_HIDDEN_BOOL for --peel-tag
-rw-r--r-- | builtin/name-rev.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c index c706fa3720..2dd1807c4e 100644 --- a/builtin/name-rev.c +++ b/builtin/name-rev.c @@ -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, "always", &always, N_("show abbreviated commit object as fallback")), - { - /* A Hidden OPT_BOOL */ - 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_HIDDEN_BOOL(0, "peel-tag", &peel_tag, + N_("dereference tags in the input (internal use)")), OPT_END(), }; |