make some more strings translatable
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-tar-tree.html.xml
blob63a7125e2ce784502229b334b092ac1385ed06c8
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\r
3 \r
4 <article lang="en" id="git-tar-tree(1)">\r
5 <articleinfo>\r
6     <title>git-tar-tree(1)</title>\r
7         <indexterm>\r
8                 <primary>git-tar-tree(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-tar-tree - Create a tar archive of the files in the named tree object</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git tar-tree</emphasis> [--remote=&lt;repo&gt;] &lt;tree-ish&gt; [ &lt;base&gt; ]</simpara>\r
18 </simplesect>\r
19 <simplesect id="_description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>THIS COMMAND IS DEPRECATED.  Use <emphasis>git-archive</emphasis> with <literal>--format=tar</literal>\r
22 option instead (and move the &lt;base&gt; argument to <literal>--prefix=base/</literal>).</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="_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="_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&#8217;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="_examples">\r
90 <title>EXAMPLES</title>\r
91 <variablelist>\r
92 <varlistentry>\r
93 <term>\r
94 git tar-tree HEAD junk | (cd /var/tmp/ &amp;&amp; tar xf -)\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         <literal>/var/tmp/junk</literal> directory.\r
101 </simpara>\r
102 </listitem>\r
103 </varlistentry>\r
104 <varlistentry>\r
105 <term>\r
106 git tar-tree v1.4.0 git-1.4.0 | gzip &gt;git-1.4.0.tar.gz\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 git tar-tree v1.4.0&#94;{tree} git-1.4.0 | gzip &gt;git-1.4.0.tar.gz\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 git tar-tree --remote=example.com:git.git v1.4.0 &gt;git-1.4.0.tar\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 git tar-tree HEAD:Documentation/ git-docs &gt; git-1.4.0-docs.tar\r
138 </term>\r
139 <listitem>\r
140 <simpara>\r
141         Put everything in the current head&#8217;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="_author">\r
149 <title>Author</title>\r
150 <simpara>Written by Rene Scharfe.</simpara>\r
151 </simplesect>\r
152 <simplesect id="_documentation">\r
153 <title>Documentation</title>\r
154 <simpara>Documentation by David Greaves, Junio C Hamano and the git-list &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt;.</simpara>\r
155 </simplesect>\r
156 <simplesect id="_git">\r
157 <title>GIT</title>\r
158 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
159 </simplesect>\r
160 </article>\r