File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ SYNOPSIS
10
10
--------
11
11
[verse]
12
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
14
<tree-ish> [paths...]
15
15
16
16
DESCRIPTION
@@ -30,6 +30,8 @@ in the current working directory. Note that:
30
30
'sub/dir' in 'HEAD'). You don't want to give a tree that is not at the
31
31
root level (e.g. 'git ls-tree -r HEAD:sub dir') in this case, as that
32
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.
33
35
34
36
OPTIONS
35
37
-------
@@ -66,6 +68,10 @@ OPTIONS
66
68
Instead of showing the path names relative to the current working
67
69
directory, show the full path names.
68
70
71
+ --full-tree::
72
+ Do not limit the listing to the current working directory.
73
+ Implies --full-name.
74
+
69
75
paths::
70
76
When paths are given, show them (note that this isn't really raw
71
77
pathnames, but rather a list of patterns to match). Otherwise
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ static int chomp_prefix;
23
23
static const char * ls_tree_prefix ;
24
24
25
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
27
28
28
static int show_recursive (const char * base , int baselen , const char * pathname )
29
29
{
You can’t perform that action at this time.
0 commit comments