summaryrefslogtreecommitdiff
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorVictor Leschuk <vleschuk@gmail.com>2015-12-15 15:31:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-16 20:03:23 (GMT)
commit89f09dd34e613394c749f69ddd74adc90cb034ca (patch)
tree3c471629f10a2ee95fde7ebbb165ac5466d0cf6a /Documentation/git-grep.txt
parent044b1f3cb4ff09551f6c514ed02edafa6c4987b0 (diff)
downloadgit-89f09dd34e613394c749f69ddd74adc90cb034ca.zip
git-89f09dd34e613394c749f69ddd74adc90cb034ca.tar.gz
git-89f09dd34e613394c749f69ddd74adc90cb034ca.tar.bz2
grep: add --threads=<num> option and grep.threads configuration
"git grep" can now be configured (or told from the command line) how many threads to use when searching in the working tree files. Signed-off-by: Victor Leschuk <vleschuk@accesssoftek.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 4a44d6d..35aada1 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -23,6 +23,7 @@ SYNOPSIS
[--break] [--heading] [-p | --show-function]
[-A <post-context>] [-B <pre-context>] [-C <context>]
[-W | --function-context]
+ [--threads <num>]
[-f <file>] [-e] <pattern>
[--and|--or|--not|(|)|-e <pattern>...]
[ [--[no-]exclude-standard] [--cached | --no-index | --untracked] | <tree>...]
@@ -53,6 +54,10 @@ grep.extendedRegexp::
option is ignored when the 'grep.patternType' option is set to a value
other than 'default'.
+grep.threads::
+ Number of grep worker threads to use. If unset (or set to 0),
+ 8 threads are used by default (for now).
+
grep.fullName::
If set to true, enable '--full-name' option by default.
@@ -227,6 +232,10 @@ OPTIONS
effectively showing the whole function in which the match was
found.
+--threads <num>::
+ Number of grep worker threads to use.
+ See `grep.threads` in 'CONFIGURATION' for more information.
+
-f <file>::
Read patterns from <file>, one per line.