1GIT-MKTREE(1)                     Git Manual                     GIT-MKTREE(1)
2
3
4

NAME

6       git-mktree - Build a tree-object from ls-tree formatted text
7

SYNOPSIS

9       git mktree [-z] [--missing] [--batch]
10

DESCRIPTION

12       Reads standard input in non-recursive ls-tree output format, and
13       creates a tree object. The order of the tree entries is normalized 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

OPTIONS

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 a single blank line. The final new-line is
30           optional. Note - if the -z option is used, lines are terminated
31           with NUL.
32

GIT

34       Part of the git(1) suite
35
36
37
38Git 2.36.1                        2022-05-05                     GIT-MKTREE(1)
Impressum