blob: 461c813f5ad19ac718b09cfae247eaac74d4d845 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-write-tree(1)
2=================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-write-tree - Create a tree object from the current index
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamanoad8c6432006-06-18 09:26:4311'git-write-tree' [--missing-ok] [--prefix=<prefix>/]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
15Creates a tree object using the current index.
16
17The index must be in a fully merged state.
18
19Conceptually, `git-write-tree` sync()s the current index contents
20into a set of tree files.
21In order to have that match what is actually in your directory right
22now, you need to have done a `git-update-index` phase before you did the
23`git-write-tree`.
24
25
26OPTIONS
27-------
28--missing-ok::
29Normally `git-write-tree` ensures that the objects referenced by the
30directory exist in the object database. This option disables this
31check.
32
Junio C Hamanoad8c6432006-06-18 09:26:4333--prefix=<prefix>/::
34Writes a tree object that represents a subdirectory
35`<prefix>`. This can be used to write the tree object
36for a subproject that is in the named subdirectory.
37
38
Junio C Hamano1a4e8412005-12-27 08:17:2339Author
40------
41Written by Linus Torvalds <torvalds@osdl.org>
42
43Documentation
44--------------
45Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
46
47GIT
48---
Junio C Hamano35738e82008-01-07 07:55:4649Part of the linkgit:git[7] suite