Document git-ls-tree --full-tree
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nanako Shiraishi committed
Dec 31, 2008 at 19:00 UTC
e1a59774077e21fc9862a968440dd23003345b4a
2 files changed
+8
-2
Documentation/git-ls-tree.txt
+7
-1
@@ -10,7 +10,7 @@ SYNOPSIS
10
--------
11
[verse]
12
'git ls-tree' [-d] [-r] [-t] [-l] [-z]
13
- [--name-only] [--name-status] [--full-name] [--abbrev=[<n>]]
13
+ [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev=[<n>]]
14
<tree-ish> [paths...]
15
16
DESCRIPTION
@@ -30,6 +30,8 @@ in the current working directory. Note that:
30
'sub/dir' in 'HEAD'). You don't want to give a tree that is not at the
31
root level (e.g. 'git ls-tree -r HEAD:sub dir') in this case, as that
32
would result in asking for 'sub/sub/dir' in the 'HEAD' commit.
33
+ However, the current working directory can be ignored by passing
34
+ --full-tree option.
35
36
OPTIONS
37
-------
@@ -66,6 +68,10 @@ OPTIONS
68
Instead of showing the path names relative to the current working
69
directory, show the full path names.
70
71
+--full-tree::
72
+ Do not limit the listing to the current working directory.
73
+ Implies --full-name.
74
+
75
paths::
76
When paths are given, show them (note that this isn't really raw
77
pathnames, but rather a list of patterns to match). Otherwise
builtin-ls-tree.c
+1
-1
@@ -23,7 +23,7 @@ static int chomp_prefix;
23
static const char *ls_tree_prefix;
24
25
static const char ls_tree_usage[] =
26
- "git ls-tree [-d] [-r] [-t] [-l] [-z] [--name-only] [--name-status] [--full-name] [--abbrev[=<n>]] <tree-ish> [path...]";
26
+ "git ls-tree [-d] [-r] [-t] [-l] [-z] [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev[=<n>]] <tree-ish> [path...]";
27
28
static int show_recursive(const char *base, int baselen, const char *pathname)
29
{