<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
<head>\r
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 7.0.1" />\r
+<meta name="generator" content="AsciiDoc 7.0.2" />\r
<style type="text/css">\r
/* Debug borders */\r
p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {\r
<h2>NAME</h2>\r
<div class="sectionbody">\r
<p>git-grep -\r
- print lines matching a pattern\r
+ Print lines matching a pattern\r
</p>\r
</div>\r
</div>\r
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
-<p><em>git-grep</em> <option>… <pattern> <path>…</p>\r
+<p><em>git-grep</em> [<option>…] [-e] <pattern> [--] [<path>…]</p>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
<div class="sectionbody">\r
<dl>\r
<dt>\r
+<tt>--</tt>\r
+</dt>\r
+<dd>\r
+<p>\r
+ Signals the end of options; the rest of the parameters\r
+ are <path> limiters.\r
+</p>\r
+</dd>\r
+<dt>\r
<option>…\r
</dt>\r
<dd>\r
<p>\r
Either an option to pass to <tt>grep</tt> or <tt>git-ls-files</tt>.\r
- Some <tt>grep</tt> options, such as <tt>-C</tt> and <tt>-m</tt>, that take\r
- parameters are known to <tt>git-grep</tt>.\r
</p>\r
+<p>The following are the specific <tt>git-ls-files</tt> options\r
+that may be given: <tt>-o</tt>, <tt>--cached</tt>, <tt>--deleted</tt>, <tt>--others</tt>,\r
+<tt>--killed</tt>, <tt>--ignored</tt>, <tt>--modified</tt>, <tt>--exclude=*</tt>,\r
+<tt>--exclude-from=*</tt>, and <tt>--exclude-per-directory=*</tt>.</p>\r
+<p>All other options will be passed to <tt>grep</tt>.</p>\r
</dd>\r
<dt>\r
<pattern>\r
</dt>\r
<dd>\r
<p>\r
- The pattern to look for.\r
+ The pattern to look for. The first non option is taken\r
+ as the pattern; if your pattern begins with a dash, use\r
+ <tt>-e <pattern></tt>.\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 27-Dec-2005 00:16:10 PDT\r
+Last updated 24-Mar-2006 08:11:01 UTC\r
</div>\r
</div>\r
</body>\r