6 git-ls-tree - Lists the contents of a tree object.
11 'git-ls-tree' [-d] [-r] [-t] [-z] [--name-only] [--name-status] <tree-ish> [paths...]
15 Lists the contents of a given tree object, like what "/bin/ls -a" does
16 in the current working directory. Note that the usage is subtly different,
17 though - 'paths' denote just a list of patterns to match, e.g. so specifying
18 directory name (without '-r') will behave differently, and order of the
19 arguments does not matter.
27 Show only the named tree entry itself, not its children.
30 Recurse into sub-trees.
33 Show tree entries even when going to recurse them. Has no effect
34 if '-r' was not passed. '-d' implies '-t'.
37 \0 line termination on output.
41 List only filenames (instead of the "long" output), one per line.
44 When paths are given, show them (note that this isn't really raw
45 pathnames, but rather a list of patterns to match). Otherwise
46 implicitly uses the root level of the tree as the sole path argument.
51 <mode> SP <type> SP <object> TAB <file>
53 When the `-z` option is not used, TAB, LF, and backslash characters
54 in pathnames are represented as `\t`, `\n`, and `\\`, respectively.
59 Written by Petr Baudis <pasky@suse.cz>
60 Completely rewritten from scratch by Junio C Hamano <junkio@cox.net>,
61 another major rewrite by Linus Torvalds <torvalds@osdl.org>
65 Documentation by David Greaves, Junio C Hamano and the git-list
66 <git@vger.kernel.org>.
68 This manual page is a stub. You can help the git documentation by expanding it.
72 Part of the gitlink:git[7] suite