summaryrefslogtreecommitdiffstats
path: root/git-checkout.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-02-01 00:22:22 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-02-01 00:22:22 +0000
commit8f62db9398f1b5c51907cea20d4b51cb0cd391d3 (patch)
treead3a6c4e81a173815730c64a9637d2e8dd0fe9fe /git-checkout.html
parent7ad22dc9253e1434fcf289ab9cfe23067018e0a9 (diff)
downloadgit-htmldocs-8f62db9398f1b5c51907cea20d4b51cb0cd391d3.tar.gz
Autogenerated HTML docs for v1.5.0-rc3
Diffstat (limited to 'git-checkout.html')
-rw-r--r--git-checkout.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/git-checkout.html b/git-checkout.html
index 4b8c211f8..7b7053008 100644
--- a/git-checkout.html
+++ b/git-checkout.html
@@ -274,7 +274,7 @@ git-checkout(1) Manual Page
<div class="sectionbody">
<div class="verseblock">
<div class="content"><em>git-checkout</em> [-f] [-b &lt;new_branch&gt; [-l]] [-m] [&lt;branch&gt;]
-<em>git-checkout</em> [&lt;branch&gt;] &lt;paths&gt;&#8230;</div></div>
+<em>git-checkout</em> [&lt;tree-ish&gt;] &lt;paths&gt;&#8230;</div></div>
</div>
<h2>DESCRIPTION</h2>
<div class="sectionbody">
@@ -285,11 +285,13 @@ specified, &lt;new_branch&gt;. Using -b will cause &lt;new_branch&gt; to
be created.</p>
<p>When &lt;paths&gt; are given, this command does <strong>not</strong> switch
branches. It updates the named paths in the working tree from
-the index file (i.e. it runs <tt>git-checkout-index -f -u</tt>). In
+the index file (i.e. it runs <tt>git-checkout-index -f -u</tt>), or a
+named commit. In
this case, <tt>-f</tt> and <tt>-b</tt> options are meaningless and giving
-either of them results in an error. &lt;branch&gt; argument can be
-used to specify a specific tree-ish to update the index for the
-given paths before updating the working tree.</p>
+either of them results in an error. &lt;tree-ish&gt; argument can be
+used to specify a specific tree-ish (i.e. commit, tag or tree)
+to update the index for the given paths before updating the
+working tree.</p>
</div>
<h2>OPTIONS</h2>
<div class="sectionbody">
@@ -509,7 +511,7 @@ $ git update-index frotz</tt></pre>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 17-Jan-2007 20:25:05 UTC
+Last updated 01-Feb-2007 00:22:05 UTC
</div>
</div>
</body>