@@ -28,7 +28,7 @@ SYNOPSIS
2828 [-f <file>] [-e] <pattern>
2929 [--and|--or|--not|(|)|-e <pattern>...]
3030 [--recurse-submodules] [--parent-basename <basename>]
31- [ [--[no-]exclude-standard] [--cached | --no-index | --untracked ] | <tree>...]
31+ [ [--[no-]exclude-standard] [--cached | --untracked | --no-index ] | <tree>...]
3232 [--] [<pathspec>...]
3333
3434DESCRIPTION
@@ -45,13 +45,21 @@ OPTIONS
4545 Instead of searching tracked files in the working tree, search
4646 blobs registered in the index file.
4747
48- --no-index::
49- Search files in the current directory that is not managed by Git.
50-
5148--untracked::
5249 In addition to searching in the tracked files in the working
5350 tree, search also in untracked files.
5451
52+ --no-index::
53+ Search files in the current directory that is not managed by Git,
54+ or by ignoring that the current directory is managed by Git. This
55+ is rather similar to running the regular `grep(1)` utility with its
56+ `-r` option specified, but with some additional benefits, such as
57+ using pathspec patterns to limit paths; see the 'pathspec' entry
58+ in linkgit:gitglossary[7] for more information.
59+ +
60+ This option cannot be used together with `--cached` or `--untracked`.
61+ See also `grep.fallbackToNoIndex` in 'CONFIGURATION' below.
62+
5563--no-exclude-standard::
5664 Also search in ignored files by not honoring the `.gitignore`
5765 mechanism. Only useful with `--untracked`.
@@ -64,9 +72,9 @@ OPTIONS
6472--recurse-submodules::
6573 Recursively search in each submodule that is active and
6674 checked out in the repository. When used in combination with the
67- <tree> option the prefix of all submodule output will be the name of
68- the parent project's <tree> object. This option has no effect
69- if `--no-index` is given .
75+ _ <tree>_ option the prefix of all submodule output will be the name of
76+ the parent project's _ <tree>_ object. This option cannot be used together
77+ with `--untracked`, and it has no effect if `--no-index` is specified .
7078
7179-a::
7280--text::
@@ -178,7 +186,7 @@ providing this option will cause it to die.
178186 Use \0 as the delimiter for pathnames in the output, and print
179187 them verbatim. Without this option, pathnames with "unusual"
180188 characters are quoted as explained for the configuration
181- variable core.quotePath (see linkgit:git-config[1]).
189+ variable ` core.quotePath` (see linkgit:git-config[1]).
182190
183191-o::
184192--only-matching::
@@ -248,8 +256,8 @@ providing this option will cause it to die.
248256 a non-zero status.
249257
250258--threads <num>::
251- Number of grep worker threads to use.
252- See `grep.threads` in 'CONFIGURATION' for more information.
259+ Number of ` grep` worker threads to use. See 'NOTES ON THREADS'
260+ and `grep.threads` in 'CONFIGURATION' for more information.
253261
254262-f <file>::
255263 Read patterns from <file>, one per line.
@@ -332,13 +340,13 @@ EXAMPLES
332340NOTES ON THREADS
333341----------------
334342
335- The `--threads` option (and the grep.threads configuration) will be ignored when
343+ The `--threads` option (and the ` grep.threads` configuration) will be ignored when
336344`--open-files-in-pager` is used, forcing a single-threaded execution.
337345
338346When grepping the object store (with `--cached` or giving tree objects), running
339- with multiple threads might perform slower than single threaded if `--textconv`
340- is given and there are too many text conversions. So if you experience low
341- performance in this case, it might be desirable to use `--threads=1`.
347+ with multiple threads might perform slower than single- threaded if `--textconv`
348+ is given and there are too many text conversions. Thus, if low performance is
349+ experienced in this case, it might be desirable to use `--threads=1`.
342350
343351CONFIGURATION
344352-------------
0 commit comments