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