From 7cfc60576aeb25e2d234d47e9fd689a6c65ffd76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Scharfe?= Date: Wed, 28 Sep 2011 19:47:50 +0200 Subject: [PATCH] revert: use OPT_NOOP_NOARG Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- builtin/revert.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builtin/revert.c b/builtin/revert.c index 3117776c2..db5b1d49c 100644 --- a/builtin/revert.c +++ b/builtin/revert.c @@ -72,12 +72,10 @@ static int option_parse_x(const struct option *opt, static void parse_args(int argc, const char **argv) { const char * const * usage_str = revert_or_cherry_pick_usage(); - int noop; struct option options[] = { OPT_BOOLEAN('n', "no-commit", &no_commit, "don't automatically commit"), OPT_BOOLEAN('e', "edit", &edit, "edit the commit message"), - { OPTION_BOOLEAN, 'r', NULL, &noop, NULL, "no-op (backward compatibility)", - PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 0 }, + OPT_NOOP_NOARG('r', NULL), OPT_BOOLEAN('s', "signoff", &signoff, "add Signed-off-by:"), OPT_INTEGER('m', "mainline", &mainline, "parent number"), OPT_RERERE_AUTOUPDATE(&allow_rerere_auto), -- 2.26.2