summaryrefslogtreecommitdiffstats
path: root/git-checkout-index.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-07-02 03:06:38 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-07-02 03:06:38 +0000
commitfce7c7e1549d1a2a2b0faf5952378236eed4d468 (patch)
treeffce2ae419b52786a0e567f4fddaadd89016f62c /git-checkout-index.html
parentbb8e996adf4293a0b624fe77e95e12ae8d1faed9 (diff)
downloadgit-htmldocs-fce7c7e1549d1a2a2b0faf5952378236eed4d468.tar.gz
Autogenerated HTML docs for v1.5.6.1-156-ge903b
Diffstat (limited to 'git-checkout-index.html')
-rw-r--r--git-checkout-index.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/git-checkout-index.html b/git-checkout-index.html
index 748515a93..76e81a057 100644
--- a/git-checkout-index.html
+++ b/git-checkout-index.html
@@ -273,7 +273,7 @@ git-checkout-index(1) Manual Page
<h2>SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<div class="content"><em>git-checkout-index</em> [-u] [-q] [-a] [-f] [-n] [--prefix=&lt;string&gt;]
+<div class="content"><em>git checkout-index</em> [-u] [-q] [-a] [-f] [-n] [--prefix=&lt;string&gt;]
[--stage=&lt;number&gt;|all]
[--temp]
[-z] [--stdin]
@@ -403,23 +403,23 @@ git-checkout-index(1) Manual Page
</dd>
</dl>
<p>The order of the flags used to matter, but not anymore.</p>
-<p>Just doing <tt>git-checkout-index</tt> does nothing. You probably meant
-<tt>git-checkout-index -a</tt>. And if you want to force it, you want
-<tt>git-checkout-index -f -a</tt>.</p>
+<p>Just doing <tt>git checkout-index</tt> does nothing. You probably meant
+<tt>git checkout-index -a</tt>. And if you want to force it, you want
+<tt>git checkout-index -f -a</tt>.</p>
<p>Intuitiveness is not the goal here. Repeatability is. The reason for
the "no arguments means no work" behavior is that from scripts you are
supposed to be able to do:</p>
<div class="listingblock">
<div class="content">
-<pre><tt>$ find . -name '*.h' -print0 | xargs -0 git-checkout-index -f --</tt></pre>
+<pre><tt>$ find . -name '*.h' -print0 | xargs -0 git checkout-index -f --</tt></pre>
</div></div>
<p>which will force all existing <tt>*.h</tt> files to be replaced with their
cached copies. If an empty command line implied "all", then this would
force-refresh everything in the index, which was not the point. But
-since git-checkout-index accepts --stdin it would be faster to use:</p>
+since <tt>git-checkout-index</tt> accepts --stdin it would be faster to use:</p>
<div class="listingblock">
<div class="content">
-<pre><tt>$ find . -name '*.h' -print0 | git-checkout-index -f -z --stdin</tt></pre>
+<pre><tt>$ find . -name '*.h' -print0 | git checkout-index -f -z --stdin</tt></pre>
</div></div>
<p>The <tt>--</tt> is just a good idea when you know the rest will be filenames;
it will prevent problems with a filename of, for example, <tt>-a</tt>.
@@ -476,7 +476,7 @@ To update and refresh only the files already checked out
<dd>
<div class="listingblock">
<div class="content">
-<pre><tt>$ git-checkout-index -n -f -a &amp;&amp; git-update-index --ignore-missing --refresh</tt></pre>
+<pre><tt>$ git checkout-index -n -f -a &amp;&amp; git update-index --ignore-missing --refresh</tt></pre>
</div></div>
</dd>
<dt>
@@ -490,9 +490,9 @@ Using <tt>git-checkout-index</tt> to "export an entire tree"
</p>
<div class="listingblock">
<div class="content">
-<pre><tt>$ git-checkout-index --prefix=git-export-dir/ -a</tt></pre>
+<pre><tt>$ git checkout-index --prefix=git-export-dir/ -a</tt></pre>
</div></div>
-<p><tt>git-checkout-index</tt> will "export" the index into the specified
+<p><tt>git checkout-index</tt> will "export" the index into the specified
directory.</p>
<p>The final "/" is important. The exported name is literally just
prefixed with the specified string. Contrast this with the
@@ -504,7 +504,7 @@ Export files with a prefix
<dd>
<div class="listingblock">
<div class="content">
-<pre><tt>$ git-checkout-index --prefix=.merged- Makefile</tt></pre>
+<pre><tt>$ git checkout-index --prefix=.merged- Makefile</tt></pre>
</div></div>
<p>This will check out the currently cached copy of <tt>Makefile</tt>
into the file <tt>.merged-Makefile</tt>.</p>
@@ -526,7 +526,7 @@ Junio C Hamano and the git-list &lt;git@vger.kernel.org&gt;.</p>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 08-Jun-2008 22:46:21 UTC
+Last updated 02-Jul-2008 03:01:34 UTC
</div>
</div>
</body>