OSDN Git Service

Add Git official document to help
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-write-tree.html.xml
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-write-tree(1)">\r
5 <articleinfo>\r
6     <title>git-write-tree(1)</title>\r
7         <indexterm>\r
8                 <primary>git-write-tree(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-write-tree - Create a tree object from the current index</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git write-tree</emphasis> [--missing-ok] [--prefix=&lt;prefix&gt;/]</simpara>\r
18 </simplesect>\r
19 <simplesect id="_description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>Creates a tree object using the current index.</simpara>\r
22 <simpara>The index must be in a fully merged state.</simpara>\r
23 <simpara>Conceptually, <emphasis>git-write-tree</emphasis> sync()s the current index contents\r
24 into a set of tree files.\r
25 In order to have that match what is actually in your directory right\r
26 now, you need to have done a <emphasis>git-update-index</emphasis> phase before you did the\r
27 <emphasis>git-write-tree</emphasis>.</simpara>\r
28 </simplesect>\r
29 <simplesect id="_options">\r
30 <title>OPTIONS</title>\r
31 <variablelist>\r
32 <varlistentry>\r
33 <term>\r
34 --missing-ok\r
35 </term>\r
36 <listitem>\r
37 <simpara>\r
38         Normally <emphasis>git-write-tree</emphasis> ensures that the objects referenced by the\r
39         directory exist in the object database.  This option disables this\r
40         check.\r
41 </simpara>\r
42 </listitem>\r
43 </varlistentry>\r
44 <varlistentry>\r
45 <term>\r
46 --prefix=&lt;prefix&gt;/\r
47 </term>\r
48 <listitem>\r
49 <simpara>\r
50         Writes a tree object that represents a subdirectory\r
51         <literal>&lt;prefix&gt;</literal>.  This can be used to write the tree object\r
52         for a subproject that is in the named subdirectory.\r
53 </simpara>\r
54 </listitem>\r
55 </varlistentry>\r
56 </variablelist>\r
57 </simplesect>\r
58 <simplesect id="_author">\r
59 <title>Author</title>\r
60 <simpara>Written by Linus Torvalds &lt;<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>&gt;</simpara>\r
61 </simplesect>\r
62 <simplesect id="_documentation">\r
63 <title>Documentation</title>\r
64 <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
65 </simplesect>\r
66 <simplesect id="_git">\r
67 <title>GIT</title>\r
68 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
69 </simplesect>\r
70 </article>\r