summaryrefslogtreecommitdiffstats
path: root/git-cat-file.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-cat-file.html
parentbc8d4783cac3c942fc9e8cf2f3eae4aea8cab5cb (diff)
downloadgit-htmldocs-61525f915b47e953b4288a9afcee45e47b352214.tar.gz
Autogenerated HTML docs for v1.9-rc0
Diffstat (limited to 'git-cat-file.html')
-rw-r--r--git-cat-file.html86
1 files changed, 45 insertions, 41 deletions
diff --git a/git-cat-file.html b/git-cat-file.html
index 2e47b4a50..ec7d90cd6 100644
--- a/git-cat-file.html
+++ b/git-cat-file.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-cat-file(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++) {
@@ -845,7 +849,7 @@ stdin, and the SHA-1, type, and size of each object is printed on stdout.</p></d
<p>
Print object information and contents for each object provided
on stdin. May not be combined with any other options or arguments.
- See the section <code>BATCH OUTPUT</code> below for details.
+ See the section <tt>BATCH OUTPUT</tt> below for details.
</p>
</dd>
<dt class="hdlist1">
@@ -858,7 +862,7 @@ stdin, and the SHA-1, type, and size of each object is printed on stdout.</p></d
<p>
Print object information for each object provided on stdin. May
not be combined with any other options or arguments. See the
- section <code>BATCH OUTPUT</code> below for details.
+ section <tt>BATCH OUTPUT</tt> below for details.
</p>
</dd>
</dl></div>
@@ -878,17 +882,17 @@ will be returned.</p></div>
<div class="sect1">
<h2 id="_batch_output">BATCH OUTPUT</h2>
<div class="sectionbody">
-<div class="paragraph"><p>If <code>--batch</code> or <code>--batch-check</code> is given, <code>cat-file</code> will read objects
+<div class="paragraph"><p>If <tt>--batch</tt> or <tt>--batch-check</tt> is given, <tt>cat-file</tt> will read objects
from stdin, one per line, and print information about them. By default,
the whole line is considered as an object, as if it were fed to
<a href="git-rev-parse.html">git-rev-parse(1)</a>.</p></div>
<div class="paragraph"><p>You can specify the information shown for each object by using a custom
-<code>&lt;format&gt;</code>. The <code>&lt;format&gt;</code> is copied literally to stdout for each
-object, with placeholders of the form <code>%(atom)</code> expanded, followed by a
+<tt>&lt;format&gt;</tt>. The <tt>&lt;format&gt;</tt> is copied literally to stdout for each
+object, with placeholders of the form <tt>%(atom)</tt> expanded, followed by a
newline. The available atoms are:</p></div>
<div class="dlist"><dl>
<dt class="hdlist1">
-<code>objectname</code>
+<tt>objectname</tt>
</dt>
<dd>
<p>
@@ -896,43 +900,43 @@ newline. The available atoms are:</p></div>
</p>
</dd>
<dt class="hdlist1">
-<code>objecttype</code>
+<tt>objecttype</tt>
</dt>
<dd>
<p>
- The type of of the object (the same as <code>cat-file -t</code> reports).
+ The type of of the object (the same as <tt>cat-file -t</tt> reports).
</p>
</dd>
<dt class="hdlist1">
-<code>objectsize</code>
+<tt>objectsize</tt>
</dt>
<dd>
<p>
- The size, in bytes, of the object (the same as <code>cat-file -s</code>
+ The size, in bytes, of the object (the same as <tt>cat-file -s</tt>
reports).
</p>
</dd>
<dt class="hdlist1">
-<code>objectsize:disk</code>
+<tt>objectsize:disk</tt>
</dt>
<dd>
<p>
The size, in bytes, that the object takes up on disk. See the
- note about on-disk sizes in the <code>CAVEATS</code> section below.
+ note about on-disk sizes in the <tt>CAVEATS</tt> section below.
</p>
</dd>
<dt class="hdlist1">
-<code>deltabase</code>
+<tt>deltabase</tt>
</dt>
<dd>
<p>
If the object is stored as a delta on-disk, this expands to the
40-hex sha1 of the delta base object. Otherwise, expands to the
- null sha1 (40 zeroes). See <code>CAVEATS</code> below.
+ null sha1 (40 zeroes). See <tt>CAVEATS</tt> below.
</p>
</dd>
<dt class="hdlist1">
-<code>rest</code>
+<tt>rest</tt>
</dt>
<dd>
<p>
@@ -940,31 +944,31 @@ newline. The available atoms are:</p></div>
at the first whitespace boundary. All characters before that
whitespace are considered to be the object name; characters
after that first run of whitespace (i.e., the "rest" of the
- line) are output in place of the <code>%(rest)</code> atom.
+ line) are output in place of the <tt>%(rest)</tt> atom.
</p>
</dd>
</dl></div>
-<div class="paragraph"><p>If no format is specified, the default format is <code>%(objectname)
-%(objecttype) %(objectsize)</code>.</p></div>
-<div class="paragraph"><p>If <code>--batch</code> is specified, the object information is followed by the
-object contents (consisting of <code>%(objectsize)</code> bytes), followed by a
+<div class="paragraph"><p>If no format is specified, the default format is <tt>%(objectname)
+%(objecttype) %(objectsize)</tt>.</p></div>
+<div class="paragraph"><p>If <tt>--batch</tt> is specified, the object information is followed by the
+object contents (consisting of <tt>%(objectsize)</tt> bytes), followed by a
newline.</p></div>
-<div class="paragraph"><p>For example, <code>--batch</code> without a custom format would produce:</p></div>
+<div class="paragraph"><p>For example, <tt>--batch</tt> without a custom format would produce:</p></div>
<div class="listingblock">
<div class="content">
-<pre><code>&lt;sha1&gt; SP &lt;type&gt; SP &lt;size&gt; LF
-&lt;contents&gt; LF</code></pre>
+<pre><tt>&lt;sha1&gt; SP &lt;type&gt; SP &lt;size&gt; LF
+&lt;contents&gt; LF</tt></pre>
</div></div>
-<div class="paragraph"><p>Whereas <code>--batch-check='%(objectname) %(objecttype)'</code> would produce:</p></div>
+<div class="paragraph"><p>Whereas <tt>--batch-check='%(objectname) %(objecttype)'</tt> would produce:</p></div>
<div class="listingblock">
<div class="content">
-<pre><code>&lt;sha1&gt; SP &lt;type&gt; LF</code></pre>
+<pre><tt>&lt;sha1&gt; SP &lt;type&gt; LF</tt></pre>
</div></div>
<div class="paragraph"><p>If a name is specified on stdin that cannot be resolved to an object in
-the repository, then <code>cat-file</code> will ignore any custom format and print:</p></div>
+the repository, then <tt>cat-file</tt> will ignore any custom format and print:</p></div>
<div class="listingblock">
<div class="content">
-<pre><code>&lt;object&gt; SP missing LF</code></pre>
+<pre><tt>&lt;object&gt; SP missing LF</tt></pre>
</div></div>
</div>
</div>