Skip to content

Commit 7cfc605

Browse files
René Scharfegitster
authored andcommitted
revert: use OPT_NOOP_NOARG
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6acec03 commit 7cfc605

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

builtin/revert.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,10 @@ static int option_parse_x(const struct option *opt,
7272
static void parse_args(int argc, const char **argv)
7373
{
7474
const char * const * usage_str = revert_or_cherry_pick_usage();
75-
int noop;
7675
struct option options[] = {
7776
OPT_BOOLEAN('n', "no-commit", &no_commit, "don't automatically commit"),
7877
OPT_BOOLEAN('e', "edit", &edit, "edit the commit message"),
79-
{ OPTION_BOOLEAN, 'r', NULL, &noop, NULL, "no-op (backward compatibility)",
80-
PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 0 },
78+
OPT_NOOP_NOARG('r', NULL),
8179
OPT_BOOLEAN('s', "signoff", &signoff, "add Signed-off-by:"),
8280
OPT_INTEGER('m', "mainline", &mainline, "parent number"),
8381
OPT_RERERE_AUTOUPDATE(&allow_rerere_auto),

0 commit comments

Comments
 (0)