Autogenerated HTML docs for v1.2.4-gec57
[git.git] / git-apply.html
index 4c1a58e..e809b6e 100644 (file)
@@ -3,7 +3,7 @@
 <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
@@ -275,6 +275,7 @@ git-apply(1) Manual Page
 <div class="verseblock">\r
 <div class="content"><em>git-apply</em> [--stat] [--numstat] [--summary] [--check] [--index] [--apply]\r
           [--no-add] [--index-info] [--allow-binary-replacement] [-z] [-pNUM]\r
+          [--whitespace=&lt;nowarn|warn|error|error-all|strip&gt;]\r
           [&lt;patch&gt;&#8230;]</div></div>\r
 </div>\r
 <h2>DESCRIPTION</h2>\r
@@ -422,6 +423,66 @@ and a work tree.</p>
         very limited way.\r
 </p>\r
 </dd>\r
+<dt>\r
+--whitespace=&lt;option&gt;\r
+</dt>\r
+<dd>\r
+<p>\r
+        When applying a patch, detect a new or modified line\r
+        that ends with trailing whitespaces (this includes a\r
+        line that solely consists of whitespaces).  By default,\r
+        the command outputs warning messages and applies the\r
+        patch.\r
+        When <tt>git-apply</tt> is used for statistics and not applying a\r
+        patch, it defaults to <tt>nowarn</tt>.\r
+        You can use different <tt>&lt;option&gt;</tt> to control this\r
+        behaviour:\r
+</p>\r
+<ul>\r
+<li>\r
+<p>\r
+<tt>nowarn</tt> turns off the trailing whitespace warning.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+<tt>warn</tt> outputs warnings for a few such errors, but applies the\r
+  patch (default).\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+<tt>error</tt> outputs warnings for a few such errors, and refuses\r
+  to apply the patch.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+<tt>error-all</tt> is similar to <tt>error</tt> but shows all errors.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+<tt>strip</tt> outputs warnings for a few such errors, strips out the\r
+  trailing whitespaces and applies the patch.\r
+</p>\r
+</li>\r
+</ul>\r
+</dd>\r
+</dl>\r
+</div>\r
+<h2>Configuration</h2>\r
+<div class="sectionbody">\r
+<dl>\r
+<dt>\r
+apply.whitespace\r
+</dt>\r
+<dd>\r
+<p>\r
+        When no <tt>--whitespace</tt> flag is given from the command\r
+        line, this configuration item is used as the default.\r
+</p>\r
+</dd>\r
 </dl>\r
 </div>\r
 <h2>Author</h2>\r
@@ -438,7 +499,7 @@ and a work tree.</p>
 </div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 31-Jan-2006 16:58:56 PDT\r
+Last updated 02-Mar-2006 09:14:48 UTC\r
 </div>\r
 </div>\r
 </body>\r