Autogenerated man pages for v1.1.4-g5b2b
[git.git] / man1 / git-grep.1
index be73f77..17784fd 100755 (executable)
@@ -23,7 +23,7 @@ git-grep \- print lines matching a pattern
 .SH "SYNOPSIS"
 
 
-git\-grep [<option>...] <pattern> [<path>...]
+git\-grep [<option>...] [\-e] <pattern> [\-\-] [<path>...]
 
 .SH "DESCRIPTION"
 
@@ -33,12 +33,27 @@ Searches list of files git\-ls\-files produces for lines containing a match to t
 .SH "OPTIONS"
 
 .TP
+\-\-
+Signals the end of options; the rest of the parameters are <path> limiters\&.
+
+.TP
 <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\&.
+Either an option to pass to grep or git\-ls\-files\&.
+
+.nf
+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=*`\&.
+.fi
+
+.nf
+All other options will be passed to `grep`\&.
+.fi
 
 .TP
 <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>\&.
 
 .TP
 <path>...