summaryrefslogtreecommitdiffstats
path: root/git-format-patch.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-05-09 05:46:08 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-05-09 05:46:08 +0000
commit6d76d61fb621d158ee26238e735e282e33fb1a81 (patch)
treeedcabf096615344f6d597c38b9faf68b26ba024d /git-format-patch.html
parent47d68a53947d51de4f67b6b7e4e7f76e71e16fb5 (diff)
downloadgit-htmldocs-6d76d61fb621d158ee26238e735e282e33fb1a81.tar.gz
Autogenerated HTML docs for v1.5.5.1-178-g1f81
Diffstat (limited to 'git-format-patch.html')
-rw-r--r--git-format-patch.html93
1 files changed, 48 insertions, 45 deletions
diff --git a/git-format-patch.html b/git-format-patch.html
index cc89cb75b..bf7c6bcee 100644
--- a/git-format-patch.html
+++ b/git-format-patch.html
@@ -992,60 +992,63 @@ and file suffix, and number patches when outputting more than one.</p>
</div>
<h2>EXAMPLES</h2>
<div class="sectionbody">
-<dl>
-<dt>
-git-format-patch -k --stdout R1..R2 | git-am -3 -k
-</dt>
-<dd>
+<ul>
+<li>
<p>
- Extract commits between revisions R1 and R2, and apply
- them on top of the current branch using <tt>git-am</tt> to
- cherry-pick them.
+Extract commits between revisions R1 and R2, and apply them on top of
+the current branch using <tt>git-am</tt> to cherry-pick them:
</p>
-</dd>
-<dt>
-git-format-patch origin
-</dt>
-<dd>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git format-patch -k --stdout R1..R2 | git-am -3 -k</tt></pre>
+</div></div>
+</li>
+<li>
<p>
- Extract all commits which are in the current branch but
- not in the origin branch. For each commit a separate file
- is created in the current directory.
+Extract all commits which are in the current branch but not in the
+origin branch:
</p>
-</dd>
-<dt>
-git-format-patch --root origin
-</dt>
-<dd>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git format-patch origin</tt></pre>
+</div></div>
+<p>For each commit a separate file is created in the current directory.</p>
+</li>
+<li>
<p>
- Extract all commits that lead to <em>origin</em> since the
- inception of the project.
+Extract all commits that lead to <em>origin</em> since the inception of the
+project:
</p>
-</dd>
-<dt>
-git-format-patch -M -B origin
-</dt>
-<dd>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git format-patch \--root origin</tt></pre>
+</div></div>
+</li>
+<li>
<p>
- The same as the previous one. Additionally, it detects
- and handles renames and complete rewrites intelligently to
- produce a renaming patch. A renaming patch reduces the
- amount of text output, and generally makes it easier to
- review it. Note that the "patch" program does not
- understand renaming patches, so use it only when you know
- the recipient uses git to apply your patch.
+The same as the previous one:
</p>
-</dd>
-<dt>
-git-format-patch -3
-</dt>
-<dd>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git format-patch -M -B origin</tt></pre>
+</div></div>
+<p>Additionally, it detects and handles renames and complete rewrites
+intelligently to produce a renaming patch. A renaming patch reduces
+the amount of text output, and generally makes it easier to review it.
+Note that the "patch" program does not understand renaming patches, so
+use it only when you know the recipient uses git to apply your patch.</p>
+</li>
+<li>
<p>
- Extract three topmost commits from the current branch
- and format them as e-mailable patches.
+Extract three topmost commits from the current branch and format them
+as e-mailable patches:
</p>
-</dd>
-</dl>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git format-patch -3</tt></pre>
+</div></div>
+</li>
+</ul>
</div>
<h2>See Also</h2>
<div class="sectionbody">
@@ -1065,7 +1068,7 @@ git-format-patch -3
</div>
<div id="footer">
<div id="footer-text">
-Last updated 23-Apr-2008 16:08:36 UTC
+Last updated 09-May-2008 05:45:37 UTC
</div>
</div>
</body>