updated git doc
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-mktree.xml
blob1985f0acd3b193f3e409d39dfdf48236c655d03f
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">\r
3 \r
4 <article lang="en" id="git-mktree(1)">\r
5 <articleinfo>\r
6     <title>git-mktree(1)</title>\r
7 <indexterm>\r
8 <primary>git-mktree(1)</primary>\r
9 </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-mktree - Build a tree-object from ls-tree formatted text</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <blockquote>\r
18 <literallayout><emphasis>git mktree</emphasis> [-z] [--missing] [--batch]</literallayout>\r
19 </blockquote>\r
20 </simplesect>\r
21 <simplesect id="_description">\r
22 <title>DESCRIPTION</title>\r
23 <simpara>Reads standard input in non-recursive <emphasis>ls-tree</emphasis> output format, and creates\r
24 a tree object.  The order of the tree entries is normalised by mktree so\r
25 pre-sorting the input is not required.  The object name of the tree object\r
26 built is written to the standard output.</simpara>\r
27 </simplesect>\r
28 <simplesect id="_options">\r
29 <title>OPTIONS</title>\r
30 <variablelist>\r
31 <varlistentry>\r
32 <term>\r
33 -z\r
34 </term>\r
35 <listitem>\r
36 <simpara>\r
37         Read the NUL-terminated <emphasis>ls-tree -z</emphasis> output instead.\r
38 </simpara>\r
39 </listitem>\r
40 </varlistentry>\r
41 <varlistentry>\r
42 <term>\r
43 --missing\r
44 </term>\r
45 <listitem>\r
46 <simpara>\r
47         Allow missing objects.  The default behaviour (without this option)\r
48         is to verify that each tree entry's sha1 identifies an existing\r
49         object.  This option has no effect on the treatment of gitlink entries\r
50         (aka "submodules") which are always allowed to be missing.\r
51 </simpara>\r
52 </listitem>\r
53 </varlistentry>\r
54 <varlistentry>\r
55 <term>\r
56 --batch\r
57 </term>\r
58 <listitem>\r
59 <simpara>\r
60         Allow building of more than one tree object before exiting.  Each\r
61         tree is separated by as single blank line. The final new-line is\r
62         optional.  Note - if the <emphasis>-z</emphasis> option is used, lines are terminated\r
63         with NUL.\r
64 </simpara>\r
65 </listitem>\r
66 </varlistentry>\r
67 </variablelist>\r
68 </simplesect>\r
69 <simplesect id="_git">\r
70 <title>GIT</title>\r
71 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>\r
72 </simplesect>\r
73 </article>\r