X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-grep.html;h=4fb85d567626e1d70ff4738ba90137d080f7f877;hb=fb56a964f2f60e657c136ccbf316f127d6d21c36;hp=a4c233f247dc96f166a58c5dc21a4e6ff4def91c;hpb=1a4e841b439ba014b365999c3a6b9e2be3740bd8;p=git.git diff --git a/git-grep.html b/git-grep.html index a4c233f2..4fb85d56 100644 --- a/git-grep.html +++ b/git-grep.html @@ -272,7 +272,7 @@ git-grep(1) Manual Page

SYNOPSIS

-

git-grep <option>… <pattern> <path>…

+

git-grep [<option>…] [-e] <pattern> [--] [<path>…]

DESCRIPTION

@@ -283,21 +283,41 @@ containing a match to the given pattern.

+-- +
+
+

+ Signals the end of options; the rest of the parameters + are <path> limiters. +

+
+
<option>…

Either an option to pass to grep or git-ls-files. - Some grep options, such as -C and -m, that take - parameters are known to git-grep.

+
+
+
The following are the specific `git-ls-files` options
+that may be given: `-o`, `--cached`, `--deleted`, `--others`,
+`--killed`, `--ignored`, `--modified`, `--exclude=*`,
+`--exclude-from=*`, and `--exclude-per-directory=*`.
+
+
+
+
All other options will be passed to `grep`.
+
<pattern>

- The pattern to look for. + The pattern to look for. The first non option is taken + as the pattern; if your pattern begins with a dash, use + -e <pattern>.

@@ -325,7 +345,7 @@ containing a match to the given pattern.