aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-ls-tree.txt
diff options
context:
space:
mode:
authorJason McMullan <jason.mcmullan@timesys.com>2005-05-26 10:52:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 15:18:55 -0700
commit6d3a5077ddb78a73fe26b154c459bc4731bca0dd (patch)
tree58cd95099dd6db9b8237c2e4e4e573307bb1625b /Documentation/git-ls-tree.txt
parent4ba406a75ca80e335acfddf77f8d119af6d34d9e (diff)
downloadgit-6d3a5077ddb78a73fe26b154c459bc4731bca0dd.tar.gz
git-6d3a5077ddb78a73fe26b154c459bc4731bca0dd.tar.xz
[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>
Diffstat (limited to 'Documentation/git-ls-tree.txt')
-rw-r--r--Documentation/git-ls-tree.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
index f6e15ad7f..a113c359c 100644
--- a/Documentation/git-ls-tree.txt
+++ b/Documentation/git-ls-tree.txt
@@ -9,7 +9,7 @@ git-ls-tree - Displays a tree object in human readable form
SYNOPSIS
--------
-'git-ls-tree' [-r] [-z] <tree-ish>
+'git-ls-tree' [-r] [-z] <tree-ish> [paths...]
DESCRIPTION
-----------
@@ -27,6 +27,11 @@ OPTIONS
-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>