]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-mktree.txt
Merge branch 'hw/remove-api-docs-placeholder'
[thirdparty/git.git] / Documentation / git-mktree.txt
CommitLineData
c16e30c0
JH
1git-mktree(1)
2=============
3
4NAME
5----
6git-mktree - Build a tree-object from ls-tree formatted text
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
f1cf2d8b 12'git mktree' [-z] [--missing] [--batch]
c16e30c0
JH
13
14DESCRIPTION
15-----------
e01662bb 16Reads standard input in non-recursive `ls-tree` output format, and creates
8523b1e3 17a tree object. The order of the tree entries is normalized by mktree so
e01662bb 18pre-sorting the input is not required. The object name of the tree object
c16e30c0
JH
19built is written to the standard output.
20
21OPTIONS
22-------
23-z::
24 Read the NUL-terminated `ls-tree -z` output instead.
25
e01662bb
JM
26--missing::
27 Allow missing objects. The default behaviour (without this option)
28 is to verify that each tree entry's sha1 identifies an existing
29 object. This option has no effect on the treatment of gitlink entries
30 (aka "submodules") which are always allowed to be missing.
31
f1cf2d8b
JM
32--batch::
33 Allow building of more than one tree object before exiting. Each
34 tree is separated by as single blank line. The final new-line is
23f8239b 35 optional. Note - if the `-z` option is used, lines are terminated
f1cf2d8b
JM
36 with NUL.
37
c16e30c0
JH
38GIT
39---
9e1f0a85 40Part of the linkgit:git[1] suite