blob: 5c6ebdfad93ea87f973194b2fe31e784033dc3c6 [file] [log] [blame]
Junio C Hamanoc16e30c2006-04-13 00:09:54 -07001git-mktree(1)
2=============
3
4NAME
5----
6git-mktree - Build a tree-object from ls-tree formatted text
7
8
9SYNOPSIS
10--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040011[verse]
Josh Micichf1cf2d82009-05-14 12:51:15 -070012'git mktree' [-z] [--missing] [--batch]
Junio C Hamanoc16e30c2006-04-13 00:09:54 -070013
14DESCRIPTION
15-----------
Josh Miciche01662b2009-05-14 12:46:03 -070016Reads standard input in non-recursive `ls-tree` output format, and creates
17a tree object. The order of the tree entries is normalised by mktree so
18pre-sorting the input is not required. The object name of the tree object
Junio C Hamanoc16e30c2006-04-13 00:09:54 -070019built is written to the standard output.
20
21OPTIONS
22-------
23-z::
24 Read the NUL-terminated `ls-tree -z` output instead.
25
Josh Miciche01662b2009-05-14 12:46:03 -070026--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
Josh Micichf1cf2d82009-05-14 12:51:15 -070032--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
35 optional. Note - if the '-z' option is used, lines are terminated
36 with NUL.
37
Junio C Hamanoc16e30c2006-04-13 00:09:54 -070038GIT
39---
Christian Couder9e1f0a82008-06-06 09:07:32 +020040Part of the linkgit:git[1] suite