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>
This commit is contained in:
Victor Leschuk
2015-12-15 18:31:39 +03:00
committed by Junio C Hamano
parent 044b1f3cb4
commit 89f09dd34e
4 changed files with 44 additions and 13 deletions

View File

@ -1310,6 +1310,7 @@ _git_grep ()
--full-name --line-number
--extended-regexp --basic-regexp --fixed-strings
--perl-regexp
--threads
--files-with-matches --name-only
--files-without-match
--max-depth