summaryrefslogtreecommitdiffstats
path: root/git-archive.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
committerJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
commitc14e6ad9a230ad90c84b7f620d87fbe49a2d0342 (patch)
tree120346dc383e3d1c4219fe8c533eb22cb6af2b55 /git-archive.html
parent2a4bcbc355496c8d83b1b9f8892c4cbe8f584158 (diff)
downloadgit-htmldocs-c14e6ad9a230ad90c84b7f620d87fbe49a2d0342.tar.gz
Autogenerated HTML docs for v2.2.0-rc0
Diffstat (limited to 'git-archive.html')
-rw-r--r--git-archive.html80
1 files changed, 39 insertions, 41 deletions
diff --git a/git-archive.html b/git-archive.html
index b1ebc060b..2ac02e0d3 100644
--- a/git-archive.html
+++ b/git-archive.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.6" />
+<meta name="generator" content="AsciiDoc 8.6.9" />
<title>git-archive(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,10 +87,16 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-pre {
+.monospaced, code, pre {
+ font-family: "Courier New", Courier, monospace;
+ font-size: inherit;
+ color: navy;
padding: 0;
margin: 0;
}
+pre {
+ white-space: pre-wrap;
+}
#author {
color: #527bbd;
@@ -219,7 +225,7 @@ div.exampleblock > div.content {
}
div.imageblock div.content { padding-left: 0; }
-span.image img { border-style: none; }
+span.image img { border-style: none; vertical-align: text-bottom; }
a.image:visited { color: white; }
dl {
@@ -349,7 +355,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -407,18 +413,14 @@ 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,12 +454,6 @@ div.tableblock > table[frame="vsides"] {
*
* */
-.monospaced {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -537,6 +533,8 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
+
+
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -581,7 +579,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([1-'+(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).
@@ -610,7 +608,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName == 'div'
+ if (entry.nodeName.toLowerCase() == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -656,7 +654,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -788,7 +786,7 @@ comment.</p></div>
is not given, and the output file is specified, the format is
inferred from the filename if possible (e.g. writing to "foo.zip"
makes the output to be in the zip format). Otherwise the output
- format is <tt>tar</tt>.
+ format is <code>tar</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -858,7 +856,7 @@ comment.</p></div>
Instead of making a tar archive from the local repository,
retrieve a tar archive from a remote repository. Note that the
remote repository may place restrictions on which sha1
- expressions may be allowed in <tt>&lt;tree-ish&gt;</tt>. See
+ expressions may be allowed in <code>&lt;tree-ish&gt;</code>. See
<a href="git-upload-archive.html">git-upload-archive(1)</a> for details.
</p>
</dd>
@@ -932,7 +930,7 @@ tar.umask
tar archive entries. The default is 0002, which turns off the
world write bit. The special value "user" indicates that the
archiving user&#8217;s umask will be used instead. See umask(2) for
- details. If <tt>--remote</tt> is used then only the configuration of
+ details. If <code>--remote</code> is used then only the configuration of
the remote repository takes effect.
</p>
</dd>
@@ -942,23 +940,23 @@ tar.&lt;format&gt;.command
<dd>
<p>
This variable specifies a shell command through which the tar
- output generated by <tt>git archive</tt> should be piped. The command
+ output generated by <code>git archive</code> should be piped. The command
is executed using the shell with the generated tar file on its
standard input, and should produce the final output on its
standard output. Any compression-level options will be passed
to the command (e.g., "-9"). An output file with the same
- extension as <tt>&lt;format&gt;</tt> will be use this format if no other
+ extension as <code>&lt;format&gt;</code> will be use this format if no other
format is given.
</p>
<div class="paragraph"><p>The "tar.gz" and "tgz" formats are defined automatically and default to
-<tt>gzip -cn</tt>. You may override them with custom commands.</p></div>
+<code>gzip -cn</code>. You may override them with custom commands.</p></div>
</dd>
<dt class="hdlist1">
tar.&lt;format&gt;.remote
</dt>
<dd>
<p>
- If true, enable <tt>&lt;format&gt;</tt> for use by remote clients via
+ If true, enable <code>&lt;format&gt;</code> for use by remote clients via
<a href="git-upload-archive.html">git-upload-archive(1)</a>. Defaults to false for
user-defined formats, but true for the "tar.gz" and "tgz"
formats.
@@ -991,13 +989,13 @@ export-subst
</p>
</dd>
</dl></div>
-<div class="paragraph"><p>Note that attributes are by default taken from the <tt>.gitattributes</tt> files
+<div class="paragraph"><p>Note that attributes are by default taken from the <code>.gitattributes</code> files
in the tree that is being archived. If you want to tweak the way the
output is generated after the fact (e.g. you committed without adding an
-appropriate export-ignore in its <tt>.gitattributes</tt>), adjust the checked out
-<tt>.gitattributes</tt> file as necessary and use <tt>--worktree-attributes</tt>
+appropriate export-ignore in its <code>.gitattributes</code>), adjust the checked out
+<code>.gitattributes</code> file as necessary and use <code>--worktree-attributes</code>
option. Alternatively you can keep necessary attributes that should apply
-while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></div>
+while archiving any tree in your <code>$GIT_DIR/info/attributes</code> file.</p></div>
</div>
</div>
<div class="sect1">
@@ -1005,17 +1003,17 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
<div class="sectionbody">
<div class="dlist"><dl>
<dt class="hdlist1">
-<tt>git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ &amp;&amp; tar xf -)</tt>
+<code>git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ &amp;&amp; tar xf -)</code>
</dt>
<dd>
<p>
Create a tar archive that contains the contents of the
latest commit on the current branch, and extract it in the
- <tt>/var/tmp/junk</tt> directory.
+ <code>/var/tmp/junk</code> directory.
</p>
</dd>
<dt class="hdlist1">
-<tt>git archive --format=tar --prefix=git-1.4.0/ v1.4.0 | gzip &gt;git-1.4.0.tar.gz</tt>
+<code>git archive --format=tar --prefix=git-1.4.0/ v1.4.0 | gzip &gt;git-1.4.0.tar.gz</code>
</dt>
<dd>
<p>
@@ -1023,7 +1021,7 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
</p>
</dd>
<dt class="hdlist1">
-<tt>git archive --format=tar.gz --prefix=git-1.4.0/ v1.4.0 &gt;git-1.4.0.tar.gz</tt>
+<code>git archive --format=tar.gz --prefix=git-1.4.0/ v1.4.0 &gt;git-1.4.0.tar.gz</code>
</dt>
<dd>
<p>
@@ -1031,7 +1029,7 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
</p>
</dd>
<dt class="hdlist1">
-<tt>git archive --prefix=git-1.4.0/ -o git-1.4.0.tar.gz v1.4.0</tt>
+<code>git archive --prefix=git-1.4.0/ -o git-1.4.0.tar.gz v1.4.0</code>
</dt>
<dd>
<p>
@@ -1039,7 +1037,7 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
</p>
</dd>
<dt class="hdlist1">
-<tt>git archive --format=tar --prefix=git-1.4.0/ v1.4.0^{tree} | gzip &gt;git-1.4.0.tar.gz</tt>
+<code>git archive --format=tar --prefix=git-1.4.0/ v1.4.0^{tree} | gzip &gt;git-1.4.0.tar.gz</code>
</dt>
<dd>
<p>
@@ -1048,7 +1046,7 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
</p>
</dd>
<dt class="hdlist1">
-<tt>git archive --format=zip --prefix=git-docs/ HEAD:Documentation/ &gt; git-1.4.0-docs.zip</tt>
+<code>git archive --format=zip --prefix=git-docs/ HEAD:Documentation/ &gt; git-1.4.0-docs.zip</code>
</dt>
<dd>
<p>
@@ -1057,7 +1055,7 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
</p>
</dd>
<dt class="hdlist1">
-<tt>git archive -o latest.zip HEAD</tt>
+<code>git archive -o latest.zip HEAD</code>
</dt>
<dd>
<p>
@@ -1067,13 +1065,13 @@ while archiving any tree in your <tt>$GIT_DIR/info/attributes</tt> file.</p></di
</p>
</dd>
<dt class="hdlist1">
-<tt>git config tar.tar.xz.command "xz -c"</tt>
+<code>git config tar.tar.xz.command "xz -c"</code>
</dt>
<dd>
<p>
Configure a "tar.xz" format for making LZMA-compressed tarfiles.
- You can use it specifying <tt>--format=tar.xz</tt>, or by creating an
- output file like <tt>-o foo.tar.xz</tt>.
+ You can use it specifying <code>--format=tar.xz</code>, or by creating an
+ output file like <code>-o foo.tar.xz</code>.
</p>
</dd>
</dl></div>