Updated git_doc to git 1.8
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-tar-tree.xml
blob96269ac7836650bc40bc76bd539eb80ba427268a
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">\r
3 \r
4 <sect2 lang="en" id="git-tar-tree(1)">\r
5     <title>git-tar-tree(1)</title>\r
6 <indexterm>\r
7 <primary>git-tar-tree(1)</primary>\r
8 </indexterm>\r
9 <simplesect id="git-tar-tree(1)__name">\r
10 <title>NAME</title>\r
11 <simpara>git-tar-tree - Create a tar archive of the files in the named tree object</simpara>\r
12 </simplesect>\r
13 <simplesect id="git-tar-tree(1)__synopsis">\r
14 <title>SYNOPSIS</title>\r
15 <blockquote>\r
16 <literallayout><emphasis>git tar-tree</emphasis> [--remote=&lt;repo&gt;] &lt;tree-ish&gt; [ &lt;base&gt; ]</literallayout>\r
17 </blockquote>\r
18 </simplesect>\r
19 <simplesect id="git-tar-tree(1)__description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>THIS COMMAND IS DEPRECATED.  Use <emphasis>git archive</emphasis> with <emphasis>--format=tar</emphasis>\r
22 option instead (and move the &lt;base&gt; argument to <emphasis>--prefix=base/</emphasis>).</simpara>\r
23 <simpara>Creates a tar archive containing the tree structure for the named tree.\r
24 When &lt;base&gt; is specified it is added as a leading path to the files in the\r
25 generated tar archive.</simpara>\r
26 <simpara><emphasis>git tar-tree</emphasis> behaves differently when given a tree ID versus when given\r
27 a commit ID or tag ID.  In the first case the current time is used as\r
28 modification time of each file in the archive.  In the latter case the\r
29 commit time as recorded in the referenced commit object is used instead.\r
30 Additionally the commit ID is stored in a global extended pax header.\r
31 It can be extracted using <emphasis>git get-tar-commit-id</emphasis>.</simpara>\r
32 </simplesect>\r
33 <simplesect id="git-tar-tree(1)__options">\r
34 <title>OPTIONS</title>\r
35 <variablelist>\r
36 <varlistentry>\r
37 <term>\r
38 &lt;tree-ish&gt;\r
39 </term>\r
40 <listitem>\r
41 <simpara>\r
42         The tree or commit to produce tar archive for.  If it is\r
43         the object name of a commit object.\r
44 </simpara>\r
45 </listitem>\r
46 </varlistentry>\r
47 <varlistentry>\r
48 <term>\r
49 &lt;base&gt;\r
50 </term>\r
51 <listitem>\r
52 <simpara>\r
53         Leading path to the files in the resulting tar archive.\r
54 </simpara>\r
55 </listitem>\r
56 </varlistentry>\r
57 <varlistentry>\r
58 <term>\r
59 --remote=&lt;repo&gt;\r
60 </term>\r
61 <listitem>\r
62 <simpara>\r
63         Instead of making a tar archive from local repository,\r
64         retrieve a tar archive from a remote repository.\r
65 </simpara>\r
66 </listitem>\r
67 </varlistentry>\r
68 </variablelist>\r
69 </simplesect>\r
70 <simplesect id="git-tar-tree(1)__configuration">\r
71 <title>CONFIGURATION</title>\r
72 <variablelist>\r
73 <varlistentry>\r
74 <term>\r
75 tar.umask\r
76 </term>\r
77 <listitem>\r
78 <simpara>\r
79         This variable can be used to restrict the permission bits of\r
80         tar archive entries.  The default is 0002, which turns off the\r
81         world write bit.  The special value "user" indicates that the\r
82         archiving user's umask will be used instead.  See umask(2) for\r
83         details.\r
84 </simpara>\r
85 </listitem>\r
86 </varlistentry>\r
87 </variablelist>\r
88 </simplesect>\r
89 <simplesect id="git-tar-tree(1)__examples">\r
90 <title>EXAMPLES</title>\r
91 <variablelist>\r
92 <varlistentry>\r
93 <term>\r
94 <emphasis>git tar-tree HEAD junk | (cd /var/tmp/ &amp;&amp; tar xf -)</emphasis>\r
95 </term>\r
96 <listitem>\r
97 <simpara>\r
98         Create a tar archive that contains the contents of the\r
99         latest commit on the current branch, and extracts it in\r
100         <emphasis>/var/tmp/junk</emphasis> directory.\r
101 </simpara>\r
102 </listitem>\r
103 </varlistentry>\r
104 <varlistentry>\r
105 <term>\r
106 <emphasis>git tar-tree v1.4.0 git-1.4.0 | gzip &gt;git-1.4.0.tar.gz</emphasis>\r
107 </term>\r
108 <listitem>\r
109 <simpara>\r
110         Create a tarball for v1.4.0 release.\r
111 </simpara>\r
112 </listitem>\r
113 </varlistentry>\r
114 <varlistentry>\r
115 <term>\r
116 <emphasis>git tar-tree v1.4.0^{tree} git-1.4.0 | gzip &gt;git-1.4.0.tar.gz</emphasis>\r
117 </term>\r
118 <listitem>\r
119 <simpara>\r
120         Create a tarball for v1.4.0 release, but without a\r
121         global extended pax header.\r
122 </simpara>\r
123 </listitem>\r
124 </varlistentry>\r
125 <varlistentry>\r
126 <term>\r
127 <emphasis>git tar-tree --remote=example.com:git.git v1.4.0 &gt;git-1.4.0.tar</emphasis>\r
128 </term>\r
129 <listitem>\r
130 <simpara>\r
131         Get a tarball v1.4.0 from example.com.\r
132 </simpara>\r
133 </listitem>\r
134 </varlistentry>\r
135 <varlistentry>\r
136 <term>\r
137 <emphasis>git tar-tree HEAD:Documentation/ git-docs &gt; git-1.4.0-docs.tar</emphasis>\r
138 </term>\r
139 <listitem>\r
140 <simpara>\r
141         Put everything in the current head's Documentation/ directory\r
142         into <emphasis>git-1.4.0-docs.tar</emphasis>, with the prefix <emphasis>git-docs/</emphasis>.\r
143 </simpara>\r
144 </listitem>\r
145 </varlistentry>\r
146 </variablelist>\r
147 </simplesect>\r
148 <simplesect id="git-tar-tree(1)__git">\r
149 <title>GIT</title>\r
150 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>\r
151 </simplesect>\r
152 </sect2>\r