diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2009-09-08 00:55:23 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2009-09-08 00:55:23 +0000 |
commit | c28068f42827f92c7c73c184e4fd11ceba0c73da (patch) | |
tree | 2ea9bf073e1f773ca1fcfb8bf76ec28ead3687e4 /git-checkout.html | |
parent | 35b47ca5285a4059792ba937f8e09b2ab4a7adf4 (diff) | |
download | git-htmldocs-c28068f42827f92c7c73c184e4fd11ceba0c73da.tar.gz |
Autogenerated HTML docs for v1.6.5-rc0
Diffstat (limited to 'git-checkout.html')
-rw-r--r-- | git-checkout.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/git-checkout.html b/git-checkout.html index b7f798233..c46bef3df 100644 --- a/git-checkout.html +++ b/git-checkout.html @@ -323,7 +323,8 @@ git-checkout(1) Manual Page <div class="verseblock">
<div class="content"><em>git checkout</em> [-q] [-f] [-m] [<branch>]
<em>git checkout</em> [-q] [-f] [-m] [-b <new_branch>] [<start_point>]
-<em>git checkout</em> [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>…</div></div>
+<em>git checkout</em> [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>…
+<em>git checkout</em> --patch [<tree-ish>] [--] [<paths>…]</div></div>
</div>
<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
@@ -335,7 +336,7 @@ branch.</p></div> use the --track or --no-track options, which will be passed to <tt>git
branch</tt>. As a convenience, --track without <tt>-b</tt> implies branch
creation; see the description of --track below.</p></div>
-<div class="para"><p>When <paths> are given, this command does <strong>not</strong> switch
+<div class="para"><p>When <paths> or --patch are given, this command does <strong>not</strong> switch
branches. It updates the named paths in the working tree from
the index file, or from a named <tree-ish> (most often a commit). In
this case, the <tt>-b</tt> and <tt>--track</tt> options are meaningless and giving
@@ -477,6 +478,22 @@ the conflicted merge in the specified paths.</p></div> </p>
</dd>
<dt>
+-p
+</dt>
+<dt>
+--patch
+</dt>
+<dd>
+<p>
+ Interactively select hunks in the difference between the
+ <tree-ish> (or the index, if unspecified) and the working
+ tree. The chosen hunks are then applied in reverse to the
+ working tree (and if a <tree-ish> was specified, the index).
+</p>
+<div class="para"><p>This means that you can use <tt>git checkout -p</tt> to selectively discard
+edits from your current working tree.</p></div>
+</dd>
+<dt>
<branch>
</dt>
<dd>
@@ -658,7 +675,7 @@ $ git add frotz</tt></pre> </div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-08-30 00:22:35 UTC
+Last updated 2009-09-08 00:54:59 UTC
</div>
</div>
</body>
|