summaryrefslogtreecommitdiffstats
path: root/man1/git-mktree.1
blob: 51d94c2034cd54dcd80b175cba76509bb71c2548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'\" t
.\"     Title: git-mktree
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 2024-04-09
.\"    Manual: Git Manual
.\"    Source: Git 2.44.0.548.g91ec36f2cc
.\"  Language: English
.\"
.TH "GIT\-MKTREE" "1" "2024\-04\-09" "Git 2\&.44\&.0\&.548\&.g91ec36" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-mktree \- Build a tree\-object from ls\-tree formatted text
.SH "SYNOPSIS"
.sp
.nf
\fIgit mktree\fR [\-z] [\-\-missing] [\-\-batch]
.fi
.sp
.SH "DESCRIPTION"
.sp
Reads standard input in non\-recursive \fBls\-tree\fR 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\&.
.SH "OPTIONS"
.PP
\-z
.RS 4
Read the NUL\-terminated
\fBls\-tree \-z\fR
output instead\&.
.RE
.PP
\-\-missing
.RS 4
Allow missing objects\&. The default behaviour (without this option) is to verify that each tree entry\(cqs 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\&.
.RE
.PP
\-\-batch
.RS 4
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
\fB\-z\fR
option is used, lines are terminated with NUL\&.
.RE
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite