Merge branch 'fixes'
[git.git] / Documentation / git-ls-tree.txt
index f6e15ad..0d159fd 100644 (file)
@@ -4,22 +4,25 @@ v0.1, May 2005
 
 NAME
 ----
-git-ls-tree - Displays a tree object in human readable form
+git-ls-tree - Lists the contents of a tree object.
 
 
 SYNOPSIS
 --------
-'git-ls-tree' [-r] [-z] <tree-ish>
+'git-ls-tree' [-d] [-r] [-z] <tree-ish> [paths...]
 
 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>::
-       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
@@ -27,14 +30,20 @@ OPTIONS
 -z::
        \0 line termination on output
 
+paths::
+       When paths are given, show them.  Otherwise implicitly
+       uses the root level of the tree as the sole path argument.
+
+
 Output Format
 -------------
-        <mode>\t       <type>\t        <object>\t      <file>
+        <mode> SP <type> SP <object> TAB <file>
 
 
 Author
 ------
 Written by Linus Torvalds <torvalds@osdl.org>
+Completely rewritten from scratch by Junio C Hamano <junkio@cox.net>
 
 Documentation
 --------------
@@ -42,5 +51,5 @@ Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel
 
 GIT
 ---
-Part of the link:git.html[git] suite
+Part of the gitlink:git[7] suite