* [PATCH] Document git-ls-tree --full-tree
@ 2008-12-29 22:18 Nanako Shiraishi
2008-12-29 22:36 ` Markus Heidelberg
2008-12-31 10:00 ` Nanako Shiraishi
0 siblings, 2 replies; 4+ messages in thread
From: Nanako Shiraishi @ 2008-12-29 22:18 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
Documentation/git-ls-tree.txt | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
index 4c7262f..db6ebcc 100644
--- a/Documentation/git-ls-tree.txt
+++ b/Documentation/git-ls-tree.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git ls-tree' [-d] [-r] [-t] [-l] [-z]
- [--name-only] [--name-status] [--full-name] [--abbrev=[<n>]]
+ [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev=[<n>]]
<tree-ish> [paths...]
DESCRIPTION
@@ -30,6 +30,8 @@ in the current working directory. Note that:
'sub/dir' in 'HEAD'). You don't want to give a tree that is not at the
root level (e.g. 'git ls-tree -r HEAD:sub dir') in this case, as that
would result in asking for 'sub/sub/dir' in the 'HEAD' commit.
+ However, the current working directory can be ignored by passing
+ --full-tree option.
OPTIONS
-------
@@ -66,6 +68,10 @@ OPTIONS
Instead of showing the path names relative to the current working
directory, show the full path names.
+--full-tree::
+ Do not limit the listing to the current working directory.
+ Implies --full-name.
+
paths::
When paths are given, show them (note that this isn't really raw
pathnames, but rather a list of patterns to match). Otherwise
--
1.6.1
--
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Document git-ls-tree --full-tree
2008-12-29 22:18 [PATCH] Document git-ls-tree --full-tree Nanako Shiraishi
@ 2008-12-29 22:36 ` Markus Heidelberg
2008-12-31 10:00 ` Nanako Shiraishi
1 sibling, 0 replies; 4+ messages in thread
From: Markus Heidelberg @ 2008-12-29 22:36 UTC (permalink / raw)
To: Nanako Shiraishi; +Cc: Junio C Hamano, git
Nanako Shiraishi, 29.12.2008:
> diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
> 'git ls-tree' [-d] [-r] [-t] [-l] [-z]
> - [--name-only] [--name-status] [--full-name] [--abbrev=[<n>]]
> + [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev=[<n>]]
> <tree-ish> [paths...]
This can additionally be done in the usage array in the source.
Markus
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] Document git-ls-tree --full-tree
2008-12-29 22:18 [PATCH] Document git-ls-tree --full-tree Nanako Shiraishi
2008-12-29 22:36 ` Markus Heidelberg
@ 2008-12-31 10:00 ` Nanako Shiraishi
2009-01-01 21:00 ` Junio C Hamano
1 sibling, 1 reply; 4+ messages in thread
From: Nanako Shiraishi @ 2008-12-31 10:00 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Markus Heidelberg
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
I added the option to ls_tree_usage[] following suggestion by Markus
Heidelberg <markus.heidelberg@web.de>
Documentation/git-ls-tree.txt | 8 +++++++-
builtin-ls-tree.c | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
index 4c7262f..db6ebcc 100644
--- a/Documentation/git-ls-tree.txt
+++ b/Documentation/git-ls-tree.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git ls-tree' [-d] [-r] [-t] [-l] [-z]
- [--name-only] [--name-status] [--full-name] [--abbrev=[<n>]]
+ [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev=[<n>]]
<tree-ish> [paths...]
DESCRIPTION
@@ -30,6 +30,8 @@ in the current working directory. Note that:
'sub/dir' in 'HEAD'). You don't want to give a tree that is not at the
root level (e.g. 'git ls-tree -r HEAD:sub dir') in this case, as that
would result in asking for 'sub/sub/dir' in the 'HEAD' commit.
+ However, the current working directory can be ignored by passing
+ --full-tree option.
OPTIONS
-------
@@ -66,6 +68,10 @@ OPTIONS
Instead of showing the path names relative to the current working
directory, show the full path names.
+--full-tree::
+ Do not limit the listing to the current working directory.
+ Implies --full-name.
+
paths::
When paths are given, show them (note that this isn't really raw
pathnames, but rather a list of patterns to match). Otherwise
diff --git a/builtin-ls-tree.c b/builtin-ls-tree.c
index cb61717..4cd624c 100644
--- a/builtin-ls-tree.c
+++ b/builtin-ls-tree.c
@@ -23,7 +23,7 @@ static int chomp_prefix;
static const char *ls_tree_prefix;
static const char ls_tree_usage[] =
- "git ls-tree [-d] [-r] [-t] [-l] [-z] [--name-only] [--name-status] [--full-name] [--abbrev[=<n>]] <tree-ish> [path...]";
+ "git ls-tree [-d] [-r] [-t] [-l] [-z] [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev[=<n>]] <tree-ish> [path...]";
static int show_recursive(const char *base, int baselen, const char *pathname)
{
--
1.6.1
--
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Document git-ls-tree --full-tree
2008-12-31 10:00 ` Nanako Shiraishi
@ 2009-01-01 21:00 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2009-01-01 21:00 UTC (permalink / raw)
To: Nanako Shiraishi; +Cc: git, Markus Heidelberg
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-01 21:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 22:18 [PATCH] Document git-ls-tree --full-tree Nanako Shiraishi
2008-12-29 22:36 ` Markus Heidelberg
2008-12-31 10:00 ` Nanako Shiraishi
2009-01-01 21:00 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).