]> git.ipfire.org Git - thirdparty/git.git/commit
name-rev: use OPT_HIDDEN_BOOL for --peel-tag
authorRené Scharfe <l.s.r@web.de>
Sat, 2 Sep 2023 18:38:34 +0000 (20:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Sep 2023 21:58:44 +0000 (14:58 -0700)
commit078c42531e8d6e8c7bfaa1a52dca330f0eef5d94
tree9a1e003950b6a413bd12a4e0edf377cc0a1f40dc
parent43c8a30d150ecede9709c1f2527c8fba92c65f40
name-rev: use OPT_HIDDEN_BOOL for --peel-tag

adfc1857bd (describe: fix --contains when a tag is given as input,
2013-07-18) added the option --peel-tag, defining it using a positional
struct option initializer and a comment indicating that it's intended to
be a hidden OPT_BOOL.  4741edd549 (Remove deprecated OPTION_BOOLEAN for
parsing arguments, 2013-08-03) added the macro OPT_HIDDEN_BOOL, which
allows to express this more succinctly.  Use it.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/name-rev.c