File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ SYNOPSIS
1010--------
1111[verse]
1212'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>]]
1414 <tree-ish> [paths...]
1515
1616DESCRIPTION
@@ -30,6 +30,8 @@ in the current working directory. Note that:
3030 'sub/dir' in 'HEAD'). You don't want to give a tree that is not at the
3131 root level (e.g. 'git ls-tree -r HEAD:sub dir') in this case, as that
3232 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.
3335
3436OPTIONS
3537-------
@@ -66,6 +68,10 @@ OPTIONS
6668 Instead of showing the path names relative to the current working
6769 directory, show the full path names.
6870
71+ --full-tree::
72+ Do not limit the listing to the current working directory.
73+ Implies --full-name.
74+
6975paths::
7076 When paths are given, show them (note that this isn't really raw
7177 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;
2323static const char * ls_tree_prefix ;
2424
2525static 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...]" ;
2727
2828static int show_recursive (const char * base , int baselen , const char * pathname )
2929{
You can’t perform that action at this time.
0 commit comments