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