Autogenerated HTML docs for v1.4.0-rc1-g99b41
[git.git] / git-cvsexportcommit.html
index bf23276..70e37cd 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
@@ -272,14 +272,14 @@ git-cvsexportcommit(1) Manual Page
 </div>\r
 <h2>SYNOPSIS</h2>\r
 <div class="sectionbody">\r
-<p>git-cvsexportcommmit.perl\r
-                        [ -h ] [ -v ] [ -c ] [ -p ] [PARENTCOMMIT] COMMITID</p>\r
+<p><em>git-cvsexportcommmit</em> [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID</p>\r
 </div>\r
 <h2>DESCRIPTION</h2>\r
 <div class="sectionbody">\r
 <p>Exports a commit from GIT to a CVS checkout, making it easier\r
 to merge patches from a git repository into a CVS repository.</p>\r
-<p>Execute it from the root of the CVS working copy. GIT_DIR must be defined.</p>\r
+<p>Execute it from the root of the CVS working copy. GIT_DIR must be defined.\r
+See examples below.</p>\r
 <p>It does its best to do the safe thing, it will check that the files are\r
 unchanged and up to date in the CVS checkout, and it will not autocommit\r
 by default.</p>\r
@@ -309,6 +309,23 @@ should the changeset be done against.</p>
 </p>\r
 </dd>\r
 <dt>\r
+-f\r
+</dt>\r
+<dd>\r
+<p>\r
+        Force the merge even if the files are not up to date.\r
+</p>\r
+</dd>\r
+<dt>\r
+-m\r
+</dt>\r
+<dd>\r
+<p>\r
+        Prepend the commit message with the provided prefix.\r
+        Useful for patch series and the like.\r
+</p>\r
+</dd>\r
+<dt>\r
 -v\r
 </dt>\r
 <dd>\r
@@ -318,6 +335,34 @@ should the changeset be done against.</p>
 </dd>\r
 </dl>\r
 </div>\r
+<h2>EXAMPLES</h2>\r
+<div class="sectionbody">\r
+<dl>\r
+<dt>\r
+Merge one patch into CVS\r
+</dt>\r
+<dd>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><tt>$ export GIT_DIR=~/project/.git\r
+$ cd ~/project_cvs_checkout\r
+$ git-cvsexportcommit -v &lt;commit-sha1&gt;\r
+$ cvs commit -F .mgs &lt;files&gt;</tt></pre>\r
+</div></div>\r
+</dd>\r
+<dt>\r
+Merge pending patches into CVS automatically &#8212; only if you really know what you are doing \r
+</dt>\r
+<dd>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><tt>$ export GIT_DIR=~/project/.git\r
+$ cd ~/project_cvs_checkout\r
+$ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v</tt></pre>\r
+</div></div>\r
+</dd>\r
+</dl>\r
+</div>\r
 <h2>Author</h2>\r
 <div class="sectionbody">\r
 <p>Written by Martin Langhoff &lt;martin@catalyst.net.nz&gt;</p>\r
@@ -332,7 +377,7 @@ should the changeset be done against.</p>
 </div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 27-Dec-2005 00:15:58 PDT\r
+Last updated 14-May-2006 09:22:47 UTC\r
 </div>\r
 </div>\r
 </body>\r