]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-ls-tree.txt
git.c: two fixes, gitsetenv type and off-by-one error.
[thirdparty/git.git] / Documentation / git-ls-tree.txt
CommitLineData
2cf565c5
DG
1git-ls-tree(1)
2==============
2cf565c5
DG
3
4NAME
5----
6af1f019 6git-ls-tree - Lists the contents of a tree object.
2cf565c5
DG
7
8
9SYNOPSIS
10--------
6af1f019 11'git-ls-tree' [-d] [-r] [-z] <tree-ish> [paths...]
2cf565c5
DG
12
13DESCRIPTION
14-----------
6af1f019
JH
15Lists the contents of a tree object, like what "/bin/ls -a" does
16in the current working directory.
2cf565c5
DG
17
18OPTIONS
19-------
20<tree-ish>::
2c6e4771 21 Id of a tree-ish.
2cf565c5 22
6af1f019
JH
23-d::
24 show only the named tree entry itself, not its children
25
2cf565c5
DG
26-r::
27 recurse into sub-trees
28
29-z::
30 \0 line termination on output
31
6d3a5077 32paths::
2c6e4771 33 When paths are given, show them. Otherwise implicitly
6af1f019
JH
34 uses the root level of the tree as the sole path argument.
35
6d3a5077 36
2cf565c5
DG
37Output Format
38-------------
6af1f019 39 <mode> SP <type> SP <object> TAB <file>
2cf565c5 40
d88156e9
JH
41When `-z` option is not used, TAB, LF, and backslash characters
42in pathnames are represented as `\t`, `\n`, and `\\`,
43respectively.
44
2cf565c5
DG
45
46Author
47------
48Written by Linus Torvalds <torvalds@osdl.org>
6af1f019 49Completely rewritten from scratch by Junio C Hamano <junkio@cox.net>
2cf565c5
DG
50
51Documentation
52--------------
53Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
54
55GIT
56---
a7154e91 57Part of the gitlink:git[7] suite
2cf565c5 58