summaryrefslogtreecommitdiffstats
path: root/git-archive.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-09-14 09:40:50 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-09-14 09:40:50 +0000
commitd6fff4023d7c93e6eb4a0ba3a8a69a646c607f48 (patch)
tree991eda173b857ad31fb8f638387428dc90b61e05 /git-archive.html
parent7df6dcfdb11ce1e05b12d12ef51d8c8d5b4987a5 (diff)
downloadgit-htmldocs-d6fff4023d7c93e6eb4a0ba3a8a69a646c607f48.tar.gz
Autogenerated HTML docs for v1.6.5-rc1-10-g20f34
Diffstat (limited to 'git-archive.html')
-rw-r--r--git-archive.html24
1 files changed, 20 insertions, 4 deletions
diff --git a/git-archive.html b/git-archive.html
index 595dee05f..a00289a20 100644
--- a/git-archive.html
+++ b/git-archive.html
@@ -322,7 +322,7 @@ git-archive(1) Manual Page
<div class="sectionbody">
<div class="verseblock">
<div class="content"><em>git archive</em> [--format=&lt;fmt&gt;] [--list] [--prefix=&lt;prefix&gt;/] [&lt;extra&gt;]
- [--output=&lt;file&gt;] [--worktree-attributes]
+ [-o | --output=&lt;file&gt;] [--worktree-attributes]
[--remote=&lt;repo&gt; [--exec=&lt;git-upload-archive&gt;]] &lt;tree-ish&gt;
[path&#8230;]</div></div>
</div>
@@ -349,8 +349,11 @@ comment.</p></div>
</dt>
<dd>
<p>
- Format of the resulting archive: <em>tar</em> or <em>zip</em>. The default
- is <em>tar</em>.
+ Format of the resulting archive: <em>tar</em> or <em>zip</em>. If this option
+ 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>.
</p>
</dd>
<dt>
@@ -384,6 +387,9 @@ comment.</p></div>
</p>
</dd>
<dt>
+-o &lt;file&gt;
+</dt>
+<dt>
--output=&lt;file&gt;
</dt>
<dd>
@@ -548,6 +554,16 @@ git archive --format=zip --prefix=git-docs/ HEAD:Documentation/ &gt; git-1.4.0-d
into <em>git-1.4.0-docs.zip</em>, with the prefix <em>git-docs/</em>.
</p>
</dd>
+<dt>
+git archive -o latest.zip HEAD
+</dt>
+<dd>
+<p>
+ Create a Zip archive that contains the contents of the latest
+ commit on the current branch. Note that the output format is
+ inferred by the extension of the output file.
+</p>
+</dd>
</dl></div>
</div>
<h2 id="_see_also">SEE ALSO</h2>
@@ -568,7 +584,7 @@ git archive --format=zip --prefix=git-docs/ HEAD:Documentation/ &gt; git-1.4.0-d
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-08-28 09:18:14 UTC
+Last updated 2009-09-14 09:40:29 UTC
</div>
</div>
</body>