]>
Commit | Line | Data |
---|---|---|
2cf565c5 DG |
1 | git-write-tree(1) |
2 | ================= | |
2cf565c5 DG |
3 | |
4 | NAME | |
5 | ---- | |
c3f0baac | 6 | git-write-tree - Create a tree object from the current index |
2cf565c5 DG |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
b1889c36 | 11 | 'git write-tree' [--missing-ok] [--prefix=<prefix>/] |
2cf565c5 DG |
12 | |
13 | DESCRIPTION | |
14 | ----------- | |
5f3aa197 | 15 | Creates a tree object using the current index. |
2cf565c5 | 16 | |
61f693bd | 17 | The index must be in a fully merged state. |
2cf565c5 | 18 | |
ba020ef5 | 19 | Conceptually, 'git-write-tree' sync()s the current index contents |
2cf565c5 DG |
20 | into a set of tree files. |
21 | In order to have that match what is actually in your directory right | |
ba020ef5 JN |
22 | now, you need to have done a 'git-update-index' phase before you did the |
23 | 'git-write-tree'. | |
61f693bd | 24 | |
2cf565c5 | 25 | |
9c1fa70a BL |
26 | OPTIONS |
27 | ------- | |
28 | --missing-ok:: | |
ba020ef5 | 29 | Normally 'git-write-tree' ensures that the objects referenced by the |
61f693bd JL |
30 | directory exist in the object database. This option disables this |
31 | check. | |
2cf565c5 | 32 | |
6bd20358 JH |
33 | --prefix=<prefix>/:: |
34 | Writes a tree object that represents a subdirectory | |
35 | `<prefix>`. This can be used to write the tree object | |
36 | for a subproject that is in the named subdirectory. | |
37 | ||
38 | ||
2cf565c5 DG |
39 | Author |
40 | ------ | |
41 | Written by Linus Torvalds <torvalds@osdl.org> | |
42 | ||
43 | Documentation | |
44 | -------------- | |
45 | Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. | |
46 | ||
47 | GIT | |
48 | --- | |
9e1f0a85 | 49 | Part of the linkgit:git[1] suite |