projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GIT 0.99.9c
[git.git]
/
Documentation
/
git-ls-tree.txt
diff --git
a/Documentation/git-ls-tree.txt
b/Documentation/git-ls-tree.txt
index
a113c35
..
ba0438e
100644
(file)
--- a/
Documentation/git-ls-tree.txt
+++ b/
Documentation/git-ls-tree.txt
@@
-1,25
+1,27
@@
git-ls-tree(1)
==============
git-ls-tree(1)
==============
-v0.1, May 2005
NAME
----
NAME
----
-git-ls-tree -
Displays a tree object in human readable form
+git-ls-tree -
Lists the contents of a tree object.
SYNOPSIS
--------
SYNOPSIS
--------
-'git-ls-tree' [-r] [-z] <tree-ish> [paths...]
+'git-ls-tree' [-
d] [-
r] [-z] <tree-ish> [paths...]
DESCRIPTION
-----------
DESCRIPTION
-----------
-Converts the tree object to a human readable (and script processable)
-
form
.
+Lists the contents of a tree object, like what "/bin/ls -a" does
+
in the current working directory
.
OPTIONS
-------
<tree-ish>::
OPTIONS
-------
<tree-ish>::
- Id of a tree.
+ Id of a tree-ish.
+
+-d::
+ show only the named tree entry itself, not its children
-r::
recurse into sub-trees
-r::
recurse into sub-trees
@@
-28,18
+30,23
@@
OPTIONS
\0 line termination on output
paths::
\0 line termination on output
paths::
- Optionally, restrict the output of git-ls-tree to specific
-
paths. Directories will only list their tree blob ids
.
- Implies -r.
+ When paths are given, show them. Otherwise implicitly
+
uses the root level of the tree as the sole path argument
.
+
Output Format
-------------
Output Format
-------------
- <mode>\t <type>\t <object>\t <file>
+ <mode> SP <type> SP <object> TAB <file>
+
+When `-z` option is not used, TAB, LF, and backslash characters
+in pathnames are represented as `\t`, `\n`, and `\\`,
+respectively.
Author
------
Written by Linus Torvalds <torvalds@osdl.org>
Author
------
Written by Linus Torvalds <torvalds@osdl.org>
+Completely rewritten from scratch by Junio C Hamano <junkio@cox.net>
Documentation
--------------
Documentation
--------------
@@
-47,5
+54,5
@@
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel
GIT
---
GIT
---
-Part of the
link:git.html[git
] suite
+Part of the
gitlink:git[7
] suite