blob: 27fe2b32e10b2f0c92315483ac4a5e8a9722d3db [file] [log] [blame]
Junio C Hamano54559c82006-04-13 07:45:121git-mktree(1)
2=============
3
4NAME
5----
6git-mktree - Build a tree-object from ls-tree formatted text
7
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamano3d141512009-06-01 01:22:4012'git mktree' [-z] [--missing] [--batch]
Junio C Hamano54559c82006-04-13 07:45:1213
14DESCRIPTION
15-----------
Junio C Hamano3d141512009-06-01 01:22:4016Reads standard input in non-recursive `ls-tree` output format, and creates
Junio C Hamano96153bf2018-04-25 08:25:3417a tree object. The order of the tree entries is normalized by mktree so
Junio C Hamano3d141512009-06-01 01:22:4018pre-sorting the input is not required. The object name of the tree object
Junio C Hamano54559c82006-04-13 07:45:1219built is written to the standard output.
20
21OPTIONS
22-------
23-z::
24Read the NUL-terminated `ls-tree -z` output instead.
25
Junio C Hamano3d141512009-06-01 01:22:4026--missing::
27Allow missing objects. The default behaviour (without this option)
28is to verify that each tree entry's sha1 identifies an existing
29object. This option has no effect on the treatment of gitlink entries
30(aka "submodules") which are always allowed to be missing.
31
32--batch::
33Allow building of more than one tree object before exiting. Each
34tree is separated by as single blank line. The final new-line is
Junio C Hamano92d80372016-07-13 22:00:0535optional. Note - if the `-z` option is used, lines are terminated
Junio C Hamano3d141512009-06-01 01:22:4036with NUL.
37
Junio C Hamano54559c82006-04-13 07:45:1238GIT
39---
Junio C Hamanof7c042d2008-06-06 22:50:5340Part of the linkgit:git[1] suite