Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/git-mktree.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / git-mktree.adoc` 40 lines ยท 1075 bytes Raw Blame History 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 -------- 11 [verse] 12 'git mktree' [-z] [--missing] [--batch] 13 14 DESCRIPTION 15 ----------- 16 Reads standard input in non-recursive `ls-tree` output format, and creates 17 a tree object. The order of the tree entries is normalized by mktree so 18 pre-sorting the input is not required. The object name of the tree object 19 built is written to the standard output. 20 21 OPTIONS 22 ------- 23 -z:: 24 Read the NUL-terminated `ls-tree -z` output instead. 25 26 --missing:: 27 Allow missing objects. The default behaviour (without this option) 28 is to verify that each tree entry's hash 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 32 --batch:: 33 Allow building of more than one tree object before exiting. Each 34 tree is separated by a single blank line. The final newline is 35 optional. Note - if the `-z` option is used, lines are terminated 36 with NUL. 37 38 GIT 39 --- 40 Part of the linkgit:git[1] suite