<div class="sectionbody">\r
<dl>\r
<dt>\r
-git tar-tree HEAD | (cd /var/tmp/ && mkdir junk && tar Cxf junk -)\r
+git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)\r
</dt>\r
<dd>\r
<p>\r
<tt>/var/tmp/junk</tt> directory.\r
</p>\r
</dd>\r
+<dt>\r
+git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz\r
+</dt>\r
+<dd>\r
+<p>\r
+ Create a tarball for v1.4.0 release.\r
+</p>\r
+</dd>\r
+<dt>\r
+git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz\r
+</dt>\r
+<dd>\r
+<p>\r
+ Create a tarball for v1.4.0 release, but without a\r
+ global extended pax header.\r
+</p>\r
+</dd>\r
+<dt>\r
+git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar\r
+</dt>\r
+<dd>\r
+<p>\r
+ Get a tarball v1.4.0 from example.com.\r
+</p>\r
+</dd>\r
</dl>\r
-<p>git tar-tree v2.6.17 linux-2.6.17 | gzip >linux-2.6.17.tar.gz</p>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>Create a tarball for v2.6.17 release.</tt></pre>\r
-</div></div>\r
-<p>git tar-tree --remote=example.com:git.git v0.99 >git-0.99.tar</p>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>Get a tarball v0.99 from example.com.</tt></pre>\r
-</div></div>\r
</div>\r
<h2>Author</h2>\r
<div class="sectionbody">\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 07-Jun-2006 19:51:32 UTC\r
+Last updated 18-Jun-2006 11:37:21 UTC\r
</div>\r
</div>\r
</body>\r
Examples
--------
-git tar-tree HEAD | (cd /var/tmp/ && mkdir junk && tar Cxf junk -)::
+git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)::
Create a tar archive that contains the contents of the
latest commit on the current branch, and extracts it in
`/var/tmp/junk` directory.
-git tar-tree v2.6.17 linux-2.6.17 | gzip >linux-2.6.17.tar.gz
+git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz::
- Create a tarball for v2.6.17 release.
+ Create a tarball for v1.4.0 release.
-git tar-tree --remote=example.com:git.git v0.99 >git-0.99.tar
+git tar-tree v1.4.0{caret}\{tree\} git-1.4.0 | gzip >git-1.4.0.tar.gz::
- Get a tarball v0.99 from example.com.
+ Create a tarball for v1.4.0 release, but without a
+ global extended pax header.
+
+git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar::
+
+ Get a tarball v1.4.0 from example.com.
Author
------