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
4 <article lang="en" id="git-write-tree(1)">
\r
6 <title>git-write-tree(1)</title>
\r
8 <primary>git-write-tree(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-write-tree - Create a tree object from the current index</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
17 <simpara><emphasis>git write-tree</emphasis> [--missing-ok] [--prefix=<prefix>/]</simpara>
\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
29 <simplesect id="_options">
\r
30 <title>OPTIONS</title>
\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
46 --prefix=<prefix>/
\r
50 Writes a tree object that represents a subdirectory
\r
51 <literal><prefix></literal>. This can be used to write the tree object
\r
52 for a subproject that is in the named subdirectory.
\r
58 <simplesect id="_author">
\r
59 <title>Author</title>
\r
60 <simpara>Written by Linus Torvalds <<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>></simpara>
\r
62 <simplesect id="_documentation">
\r
63 <title>Documentation</title>
\r
64 <simpara>Documentation by David Greaves, Junio C Hamano and the git-list <<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>>.</simpara>
\r
66 <simplesect id="_git">
\r
68 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
\r