git-commit-vandalism/Documentation/git-ls-tree.txt
Jason McMullan 6d3a5077dd [PATCH] ls-tree matching multiple paths
Enhance git-ls-tree to allow optional 'match paths' that
restricts the output of git-ls-tree.  This is useful to retrieve
a single file's SHA1 out of a tree without creating an index.

[JC: I added the test case]

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-26 15:18:55 -07:00

52 lines
832 B
Plaintext

git-ls-tree(1)
==============
v0.1, May 2005
NAME
----
git-ls-tree - Displays a tree object in human readable form
SYNOPSIS
--------
'git-ls-tree' [-r] [-z] <tree-ish> [paths...]
DESCRIPTION
-----------
Converts the tree object to a human readable (and script processable)
form.
OPTIONS
-------
<tree-ish>::
Id of a tree.
-r::
recurse into sub-trees
-z::
\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.
Output Format
-------------
<mode>\t <type>\t <object>\t <file>
Author
------
Written by Linus Torvalds <torvalds@osdl.org>
Documentation
--------------
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
GIT
---
Part of the link:git.html[git] suite