summaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-01 06:06:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-01 06:06:38 (GMT)
commite1149fd7d95e3b63f56d4360e135428fc3f7eb82 (patch)
tree21a585696e84b23bdc087ae87e85278c1f22b754 /builtin/grep.c
parent2bd108ff65031b79d191cfa491fa676ca67e7788 (diff)
parent3e4a67b47d020c8c61d8a762d1903f5288e94778 (diff)
downloadgit-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.zip
git-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.tar.gz
git-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.tar.bz2
Merge branch 'nd/use-opt-int-set-f'
Code simplification. * nd/use-opt-int-set-f: Use OPT_SET_INT_F() for cmdline option specification
Diffstat (limited to 'builtin/grep.c')
-rw-r--r--builtin/grep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index 69f0743..ee753a4 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -886,9 +886,9 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
N_("indicate hit with exit status without output")),
OPT_BOOL(0, "all-match", &opt.all_match,
N_("show only matches from files that match all patterns")),
- { OPTION_SET_INT, 0, "debug", &opt.debug, NULL,
- N_("show parse tree for grep expression"),
- PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1 },
+ OPT_SET_INT_F(0, "debug", &opt.debug,
+ N_("show parse tree for grep expression"),
+ 1, PARSE_OPT_HIDDEN),
OPT_GROUP(""),
{ OPTION_STRING, 'O', "open-files-in-pager", &show_in_pager,
N_("pager"), N_("show matching files in the pager"),