summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-10 22:48:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-10 22:48:31 (GMT)
commitc9f94ab4fa42c3fce6c8fa04bb850f73e7f1cd54 (patch)
tree38b2201c5638f8cad26a0b09239b2dc2eebaf40b /builtin
parent9d5b1c06ac1e46e985b5d62bccb78d9fb6de374a (diff)
parent15c9649730df7f2bccc38553b7e812505de5c110 (diff)
downloadgit-c9f94ab4fa42c3fce6c8fa04bb850f73e7f1cd54.zip
git-c9f94ab4fa42c3fce6c8fa04bb850f73e7f1cd54.tar.gz
git-c9f94ab4fa42c3fce6c8fa04bb850f73e7f1cd54.tar.bz2
Merge branch 'ab/lose-grep-debug'
Lose the debugging aid that may have been useful in the past, but no longer is, in the "grep" codepaths. * ab/lose-grep-debug: grep/log: remove hidden --debug and --grep-debug options
Diffstat (limited to 'builtin')
-rw-r--r--builtin/grep.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index ca259af..55d06c9 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -216,8 +216,6 @@ static void start_threads(struct grep_opt *opt)
int err;
struct grep_opt *o = grep_opt_dup(opt);
o->output = strbuf_out;
- if (i)
- o->debug = 0;
compile_grep_patterns(o);
err = pthread_create(&threads[i], NULL, run, o);
@@ -936,9 +934,6 @@ 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")),
- 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"),