1GIT-MKTREE(1) Git Manual GIT-MKTREE(1)
2
3
4
6 git-mktree - Build a tree-object from ls-tree formatted text
7
9 git mktree [-z] [--missing] [--batch]
10
12 Reads standard input in non-recursive ls-tree output format, and
13 creates a tree object. The order of the tree entries is normalised by
14 mktree so pre-sorting the input is not required. The object name of the
15 tree object built is written to the standard output.
16
18 -z
19 Read the NUL-terminated ls-tree -z output instead.
20
21 --missing
22 Allow missing objects. The default behaviour (without this option)
23 is to verify that each tree entry’s sha1 identifies an existing
24 object. This option has no effect on the treatment of gitlink
25 entries (aka "submodules") which are always allowed to be missing.
26
27 --batch
28 Allow building of more than one tree object before exiting. Each
29 tree is separated by as single blank line. The final new-line is
30 optional. Note - if the -z option is used, lines are terminated
31 with NUL.
32
34 Written by Junio C Hamano <gitster@pobox.com[1]>
35
37 Documentation by Junio C Hamano and the git-list
38 <git@vger.kernel.org[2]>.
39
41 Part of the git(1) suite
42
44 1. gitster@pobox.com
45 mailto:gitster@pobox.com
46
47 2. git@vger.kernel.org
48 mailto:git@vger.kernel.org
49
50
51
52Git 1.7.4.4 04/11/2011 GIT-MKTREE(1)