diff options
author | Victor Leschuk <vleschuk@gmail.com> | 2015-12-15 18:31:39 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-16 12:03:23 -0800 |
commit | 89f09dd34e613394c749f69ddd74adc90cb034ca (patch) | |
tree | 3c471629f10a2ee95fde7ebbb165ac5466d0cf6a /Documentation/git-grep.txt | |
parent | 044b1f3cb4ff09551f6c514ed02edafa6c4987b0 (diff) | |
download | git-89f09dd34e613394c749f69ddd74adc90cb034ca.tar.gz |
grep: add --threads=<num> option and grep.threads configurationvl/grep-configurable-threads
"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.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index 4a44d6da13..35aada1447 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. |