X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-ls-tree.txt;h=cdc5654a991379890483a325145a74595d42741f;hb=2b2dabc29f53c5835868029585000ee487cf6cbb;hp=f6e15ad7faf96ccc0b931f28f83fc5aab05d1e75;hpb=f1a7eb36b017c62d9a007b6b8660bdeec3f94f97;p=git.git diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt index f6e15ad7..cdc5654a 100644 --- a/Documentation/git-ls-tree.txt +++ b/Documentation/git-ls-tree.txt @@ -1,25 +1,27 @@ git-ls-tree(1) ============== -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] +'git-ls-tree' [-d] [-r] [-z] [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 ------- :: - 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 +29,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 ------------- - \t \t \t + SP SP TAB Author ------ Written by Linus Torvalds +Completely rewritten from scratch by Junio C Hamano Documentation -------------- @@ -42,5 +50,5 @@ Documentation by David Greaves, Junio C Hamano and the git-list