'\" t .\" Title: git-mktree .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 01/05/2024 .\" Manual: Git Manual .\" Source: Git 2.43.0.381.gb435a96ce8 .\" Language: English .\" .TH "GIT\-MKTREE" "1" "01/05/2024" "Git 2\&.43\&.0\&.381\&.gb435a9" "Git Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" git-mktree \- Build a tree\-object from ls\-tree formatted text .SH "SYNOPSIS" .sp .nf \fIgit mktree\fR [\-z] [\-\-missing] [\-\-batch] .fi .sp .SH "DESCRIPTION" .sp 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\&. .SH "OPTIONS" .PP \-z .RS 4 Read the NUL\-terminated \fBls\-tree \-z\fR output instead\&. .RE .PP \-\-missing .RS 4 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\&. .RE .PP \-\-batch .RS 4 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 \fB\-z\fR option is used, lines are terminated with NUL\&. .RE .SH "GIT" .sp Part of the \fBgit\fR(1) suite