blob: 6fedd9067e6cac1ce3164486b0b7acdd22c0b413 (
plain)
1
2
3
4
5
6
|
<h1>git-mktree</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-mktree - Build a tree-object from ls-tree formatted text</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git mktree [-z] [--missing] [--batch]</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>Reads standard input in non-recursive <code>ls-tree</code> output format, and creates a tree object. The order of the tree entries is normalized by mktree so pre-sorting the input is not required. The object name of the tree object built is written to the standard output.</p> </div> <h2 id="_options">Options</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-mktree.txt--z"> -z </dt> <dd> <p>Read the NUL-terminated <code>ls-tree -z</code> output instead.</p> </dd> <dt class="hdlist1" id="Documentation/git-mktree.txt---missing"> --missing </dt> <dd> <p>Allow missing objects. The default behaviour (without this option) is to verify that each tree entry’s hash identifies an existing object. This option has no effect on the treatment of gitlink entries (aka "submodules") which are always allowed to be missing.</p> </dd> <dt class="hdlist1" id="Documentation/git-mktree.txt---batch"> --batch </dt> <dd> <p>Allow building of more than one tree object before exiting. Each tree is separated by a single blank line. The final newline is optional. Note - if the <code>-z</code> option is used, lines are terminated with NUL.</p> </dd> </dl> </div> </div><div class="_attribution">
<p class="_attribution-p">
© 2012–2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
<a href="https://git-scm.com/docs/git-mktree" class="_attribution-link">https://git-scm.com/docs/git-mktree</a>
</p>
</div>
|