Skip to content

Commit

Permalink
config.txt: move grep.* to a separate file
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
pclouds authored and gitster committed Oct 29, 2018
1 parent 0648b76 commit 434e6e7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
25 changes: 1 addition & 24 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,30 +339,7 @@ include::config/gitcvs.txt[]

include::config/gitweb.txt[]

grep.lineNumber::
If set to true, enable `-n` option by default.

grep.column::
If set to true, enable the `--column` option by default.

grep.patternType::
Set the default matching behavior. Using a value of 'basic', 'extended',
'fixed', or 'perl' will enable the `--basic-regexp`, `--extended-regexp`,
`--fixed-strings`, or `--perl-regexp` option accordingly, while the
value 'default' will return to the default matching behavior.

grep.extendedRegexp::
If set to true, enable `--extended-regexp` option by default. This
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.
See `grep.threads` in linkgit:git-grep[1] for more information.

grep.fallbackToNoIndex::
If set to true, fall back to git grep --no-index if git grep
is executed outside of a git repository. Defaults to false.
include::config/grep.txt[]

gpg.program::
Use this custom program instead of "`gpg`" found on `$PATH` when
Expand Down
24 changes: 24 additions & 0 deletions Documentation/config/grep.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
grep.lineNumber::
If set to true, enable `-n` option by default.

grep.column::
If set to true, enable the `--column` option by default.

grep.patternType::
Set the default matching behavior. Using a value of 'basic', 'extended',
'fixed', or 'perl' will enable the `--basic-regexp`, `--extended-regexp`,
`--fixed-strings`, or `--perl-regexp` option accordingly, while the
value 'default' will return to the default matching behavior.

grep.extendedRegexp::
If set to true, enable `--extended-regexp` option by default. This
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.
See `grep.threads` in linkgit:git-grep[1] for more information.

grep.fallbackToNoIndex::
If set to true, fall back to git grep --no-index if git grep
is executed outside of a git repository. Defaults to false.

0 comments on commit 434e6e7

Please sign in to comment.