Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: show --debug output only once
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 8aea00c04840552d8d9912195609883ed0dc6bb2..a7e8df0d409fd431b71d1458cde6252ae119bf18 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-209,6
+209,7
@@
static void start_threads(struct grep_opt *opt)
int err;
struct grep_opt *o = grep_opt_dup(opt);
o->output = strbuf_out;
+ o->debug = 0;
compile_grep_patterns(o);
err = pthread_create(&threads[i], NULL, run, o);