3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.46.0.267.gbb9c16bd4f
10 .TH "GIT\-MKTREE" "1" "2024-08-19" "Git 2\&.46\&.0\&.267\&.gbb9c16" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-mktree \- Build a tree\-object from ls\-tree formatted text
35 \fIgit mktree\fR [\-z] [\-\-missing] [\-\-batch]
39 Reads standard input in non\-recursive \fBls\-tree\fR output format, and creates a tree object\&. The order of the tree entries is normalized by mktree so pre\-sorting the input is not required\&. The object name of the tree object built is written to the standard output\&.
44 Read the NUL\-terminated
51 Allow missing objects\&. The default behaviour (without this option) is to verify that each tree entry\(cqs hash identifies an existing object\&. This option has no effect on the treatment of gitlink entries (aka "submodules") which are always allowed to be missing\&.
56 Allow building of more than one tree object before exiting\&. Each tree is separated by a single blank line\&. The final newline is optional\&. Note \- if the
58 option is used, lines are terminated with NUL\&.
62 Part of the \fBgit\fR(1) suite