Junio C Hamano | 54559c8 | 2006-04-13 07:45:12 | [diff] [blame] | 1 | git-mktree(1) |
| 2 | ============= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | git-mktree - Build a tree-object from ls-tree formatted text |
| 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | 3d14151 | 2009-06-01 01:22:40 | [diff] [blame] | 11 | 'git mktree' [-z] [--missing] [--batch] |
Junio C Hamano | 54559c8 | 2006-04-13 07:45:12 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Junio C Hamano | 3d14151 | 2009-06-01 01:22:40 | [diff] [blame] | 15 | Reads standard input in non-recursive `ls-tree` output format, and creates |
| 16 | a tree object. The order of the tree entries is normalised by mktree so |
| 17 | pre-sorting the input is not required. The object name of the tree object |
Junio C Hamano | 54559c8 | 2006-04-13 07:45:12 | [diff] [blame] | 18 | built is written to the standard output. |
| 19 | |
| 20 | OPTIONS |
| 21 | ------- |
| 22 | -z:: |
| 23 | Read the NUL-terminated `ls-tree -z` output instead. |
| 24 | |
Junio C Hamano | 3d14151 | 2009-06-01 01:22:40 | [diff] [blame] | 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 | |
| 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 | |
Junio C Hamano | 54559c8 | 2006-04-13 07:45:12 | [diff] [blame] | 37 | Author |
| 38 | ------ |
Junio C Hamano | 0868a30 | 2008-07-22 09:20:44 | [diff] [blame] | 39 | Written by Junio C Hamano <gitster@pobox.com> |
Junio C Hamano | 54559c8 | 2006-04-13 07:45:12 | [diff] [blame] | 40 | |
| 41 | Documentation |
| 42 | -------------- |
| 43 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. |
| 44 | |
| 45 | GIT |
| 46 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 47 | Part of the linkgit:git[1] suite |