diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-03 15:42:50 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-03 15:42:50 +0900 |
commit | 9124cca61f7edfed70dc5d8bced7fb7cb9fe2221 (patch) | |
tree | e4846bbf73f9bffa34938081fcb839f646153d42 /Documentation/git-grep.txt | |
parent | 9257d3d7db17be306875f41b842716d275a3f76a (diff) | |
parent | 93dbefb389a011c9107a3908fd38e743055be267 (diff) | |
download | git-9124cca61f7edfed70dc5d8bced7fb7cb9fe2221.tar.gz |
Merge branch 'mr/doc-negative-pathspec'
Doc updates.
* mr/doc-negative-pathspec:
docs: improve discoverability of exclude pathspec
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r-- | Documentation/git-grep.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index 720c7850e2..18b494731f 100644 --- a/Documentation/git-grep.txt +++ b/Documentation/git-grep.txt @@ -289,6 +289,9 @@ providing this option will cause it to die. <pathspec>...:: If given, limit the search to paths matching at least one pattern. Both leading paths match and glob(7) patterns are supported. ++ +For more details about the <pathspec> syntax, see the 'pathspec' entry +in linkgit:gitglossary[7]. Examples -------- @@ -305,6 +308,9 @@ Examples Looks for a line that has `NODE` or `Unexpected` in files that have lines that match both. +`git grep solution -- :^Documentation`:: + Looks for `solution`, excluding files in `Documentation`. + GIT --- Part of the linkgit:git[1] suite |