summaryrefslogtreecommitdiffstats
path: root/git-checkout-index.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-17 14:46:49 -0800
committerJunio C Hamano <gitster@pobox.com>2014-01-17 14:46:49 -0800
commit61525f915b47e953b4288a9afcee45e47b352214 (patch)
treef0649f89cc7a77c0296305f4673fc2bc7e0a6d54 /git-checkout-index.html
parentbc8d4783cac3c942fc9e8cf2f3eae4aea8cab5cb (diff)
downloadgit-htmldocs-61525f915b47e953b4288a9afcee45e47b352214.tar.gz
Autogenerated HTML docs for v1.9-rc0
Diffstat (limited to 'git-checkout-index.html')
-rw-r--r--git-checkout-index.html74
1 files changed, 39 insertions, 35 deletions
diff --git a/git-checkout-index.html b/git-checkout-index.html
index 06caea55f..ae2ea045b 100644
--- a/git-checkout-index.html
+++ b/git-checkout-index.html
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.6.8" />
+<meta name="generator" content="AsciiDoc 8.6.6" />
<title>git-checkout-index(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,15 +87,11 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-.monospaced, code, pre {
- font-family: "Courier New", Courier, monospace;
- font-size: inherit;
- color: navy;
+pre {
padding: 0;
margin: 0;
}
-
#author {
color: #527bbd;
font-weight: bold;
@@ -353,7 +349,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -411,14 +407,18 @@ span.underline { text-decoration: underline; }
span.overline { text-decoration: overline; }
span.line-through { text-decoration: line-through; }
-div.unbreakable { page-break-inside: avoid; }
-
/*
* xhtml11 specific
*
* */
+tt {
+ font-family: monospace;
+ font-size: inherit;
+ color: navy;
+}
+
div.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -452,6 +452,12 @@ div.tableblock > table[frame="vsides"] {
*
* */
+.monospaced {
+ font-family: monospace;
+ font-size: inherit;
+ color: navy;
+}
+
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -531,8 +537,6 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
-
-
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -577,7 +581,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
// Function that scans the DOM tree for header elements (the DOM2
// nodeIterator API would be a better technique but not supported by all
// browsers).
@@ -606,7 +610,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName.toLowerCase() == 'div'
+ if (entry.nodeName == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -652,7 +656,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -868,7 +872,7 @@ git-checkout-index(1) Manual Page
</dt>
<dd>
<p>
- Only meaningful with <code>--stdin</code>; paths are separated with
+ Only meaningful with <tt>--stdin</tt>; paths are separated with
NUL character instead of LF.
</p>
</dd>
@@ -882,33 +886,33 @@ git-checkout-index(1) Manual Page
</dd>
</dl></div>
<div class="paragraph"><p>The order of the flags used to matter, but not anymore.</p></div>
-<div class="paragraph"><p>Just doing <code>git checkout-index</code> does nothing. You probably meant
-<code>git checkout-index -a</code>. And if you want to force it, you want
-<code>git checkout-index -f -a</code>.</p></div>
+<div class="paragraph"><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></div>
<div class="paragraph"><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>
<div class="listingblock">
<div class="content">
-<pre><code>$ find . -name '*.h' -print0 | xargs -0 git checkout-index -f --</code></pre>
+<pre><tt>$ find . -name '*.h' -print0 | xargs -0 git checkout-index -f --</tt></pre>
</div></div>
-<div class="paragraph"><p>which will force all existing <code>*.h</code> files to be replaced with their
+<div class="paragraph"><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 <em>git checkout-index</em> accepts --stdin it would be faster to use:</p></div>
<div class="listingblock">
<div class="content">
-<pre><code>$ find . -name '*.h' -print0 | git checkout-index -f -z --stdin</code></pre>
+<pre><tt>$ find . -name '*.h' -print0 | git checkout-index -f -z --stdin</tt></pre>
</div></div>
-<div class="paragraph"><p>The <code>--</code> is just a good idea when you know the rest will be filenames;
-it will prevent problems with a filename of, for example, <code>-a</code>.
-Using <code>--</code> is probably a good policy in scripts.</p></div>
+<div class="paragraph"><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>.
+Using <tt>--</tt> is probably a good policy in scripts.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_using_temp_or_stage_all">Using --temp or --stage=all</h2>
<div class="sectionbody">
-<div class="paragraph"><p>When <code>--temp</code> is used (or implied by <code>--stage=all</code>)
+<div class="paragraph"><p>When <tt>--temp</tt> is used (or implied by <tt>--stage=all</tt>)
<em>git checkout-index</em> will create a temporary file for each index
entry being checked out. The index will not be updated with stat
information. These options can be useful if the caller needs all
@@ -922,8 +926,8 @@ has two variations:</p></div>
<p>
tempname TAB path RS
</p>
-<div class="paragraph"><p>The first format is what gets used when <code>--stage</code> is omitted or
-is not <code>--stage=all</code>. The field tempname is the temporary file
+<div class="paragraph"><p>The first format is what gets used when <tt>--stage</tt> is omitted or
+is not <tt>--stage=all</tt>. The field tempname is the temporary file
name holding the file content and path is the tracked path name in
the index. Only the requested entries are output.</p></div>
</li>
@@ -931,10 +935,10 @@ the index. Only the requested entries are output.</p></div>
<p>
stage1temp SP stage2temp SP stage3tmp TAB path RS
</p>
-<div class="paragraph"><p>The second format is what gets used when <code>--stage=all</code>. The three
+<div class="paragraph"><p>The second format is what gets used when <tt>--stage=all</tt>. The three
stage temporary fields (stage1temp, stage2temp, stage3temp) list the
name of the temporary file if there is a stage entry in the index
-or <code>.</code> if there is no stage entry. Paths which only have a stage 0
+or <tt>.</tt> if there is no stage entry. Paths which only have a stage 0
entry will always be omitted from the output.</p></div>
</li>
</ol></div>
@@ -959,7 +963,7 @@ To update and refresh only the files already checked out
<dd>
<div class="listingblock">
<div class="content">
-<pre><code>$ git checkout-index -n -f -a &amp;&amp; git update-index --ignore-missing --refresh</code></pre>
+<pre><tt>$ git checkout-index -n -f -a &amp;&amp; git update-index --ignore-missing --refresh</tt></pre>
</div></div>
</dd>
<dt class="hdlist1">
@@ -973,9 +977,9 @@ Using <em>git checkout-index</em> to "export an entire tree"
</p>
<div class="listingblock">
<div class="content">
-<pre><code>$ git checkout-index --prefix=git-export-dir/ -a</code></pre>
+<pre><tt>$ git checkout-index --prefix=git-export-dir/ -a</tt></pre>
</div></div>
-<div class="paragraph"><p><code>git checkout-index</code> will "export" the index into the specified
+<div class="paragraph"><p><tt>git checkout-index</tt> will "export" the index into the specified
directory.</p></div>
<div class="paragraph"><p>The final "/" is important. The exported name is literally just
prefixed with the specified string. Contrast this with the
@@ -987,10 +991,10 @@ Export files with a prefix
<dd>
<div class="listingblock">
<div class="content">
-<pre><code>$ git checkout-index --prefix=.merged- Makefile</code></pre>
+<pre><tt>$ git checkout-index --prefix=.merged- Makefile</tt></pre>
</div></div>
-<div class="paragraph"><p>This will check out the currently cached copy of <code>Makefile</code>
-into the file <code>.merged-Makefile</code>.</p></div>
+<div class="paragraph"><p>This will check out the currently cached copy of <tt>Makefile</tt>
+into the file <tt>.merged-Makefile</tt>.</p></div>
</dd>
</dl></div>
</div>