blob: 81e3326772d94464708cc2037715e1e62eae5f11 [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 Hamano3d141512009-06-01 01:22:4011'git mktree' [-z] [--missing] [--batch]
Junio C Hamano54559c82006-04-13 07:45:1212
13DESCRIPTION
14-----------
Junio C Hamano3d141512009-06-01 01:22:4015Reads 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
Junio C Hamano54559c82006-04-13 07:45:1218built is written to the standard output.
19
20OPTIONS
21-------
22-z::
23Read the NUL-terminated `ls-tree -z` output instead.
24
Junio C Hamano3d141512009-06-01 01:22:4025--missing::
26Allow missing objects. The default behaviour (without this option)
27is to verify that each tree entry's sha1 identifies an existing
28object. This option has no effect on the treatment of gitlink entries
29(aka "submodules") which are always allowed to be missing.
30
31--batch::
32Allow building of more than one tree object before exiting. Each
33tree is separated by as single blank line. The final new-line is
34optional. Note - if the '-z' option is used, lines are terminated
35with NUL.
36
Junio C Hamano54559c82006-04-13 07:45:1237Author
38------
Junio C Hamano0868a302008-07-22 09:20:4439Written by Junio C Hamano <gitster@pobox.com>
Junio C Hamano54559c82006-04-13 07:45:1240
41Documentation
42--------------
43Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
44
45GIT
46---
Junio C Hamanof7c042d2008-06-06 22:50:5347Part of the linkgit:git[1] suite