]>
Commit | Line | Data |
---|---|---|
2cf565c5 DG |
1 | git-ls-tree(1) |
2 | ============== | |
2cf565c5 DG |
3 | |
4 | NAME | |
5 | ---- | |
6af1f019 | 6 | git-ls-tree - Lists the contents of a tree object. |
2cf565c5 DG |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
6af1f019 | 11 | 'git-ls-tree' [-d] [-r] [-z] <tree-ish> [paths...] |
2cf565c5 DG |
12 | |
13 | DESCRIPTION | |
14 | ----------- | |
6af1f019 JH |
15 | Lists the contents of a tree object, like what "/bin/ls -a" does |
16 | in the current working directory. | |
2cf565c5 DG |
17 | |
18 | OPTIONS | |
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 | 32 | paths:: |
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 |
37 | Output Format |
38 | ------------- | |
6af1f019 | 39 | <mode> SP <type> SP <object> TAB <file> |
2cf565c5 | 40 | |
d88156e9 JH |
41 | When `-z` option is not used, TAB, LF, and backslash characters |
42 | in pathnames are represented as `\t`, `\n`, and `\\`, | |
43 | respectively. | |
44 | ||
2cf565c5 DG |
45 | |
46 | Author | |
47 | ------ | |
48 | Written by Linus Torvalds <torvalds@osdl.org> | |
6af1f019 | 49 | Completely rewritten from scratch by Junio C Hamano <junkio@cox.net> |
2cf565c5 DG |
50 | |
51 | Documentation | |
52 | -------------- | |
53 | Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. | |
54 | ||
55 | GIT | |
56 | --- | |
a7154e91 | 57 | Part of the gitlink:git[7] suite |
2cf565c5 | 58 |