X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fgit-ls-tree.txt;h=958b56d8f408e5a351c358197a9f5ab9eb986454;hb=f13bbe7f56e49a11f6bfc3b73a463c741f969c9c;hp=a113c359c19756786a896002231c6460f8c062c0;hpb=6d3a5077ddb78a73fe26b154c459bc4731bca0dd;p=git.git diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt index a113c359..958b56d8 100644 --- a/Documentation/git-ls-tree.txt +++ b/Documentation/git-ls-tree.txt @@ -4,23 +4,26 @@ 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] [paths...] +'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. +-d:: + show only the named tree entry itself, not its children + -r:: recurse into sub-trees @@ -28,18 +31,19 @@ OPTIONS \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, shows 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 --------------