aboutsummaryrefslogtreecommitdiff
path: root/builtin-ls-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-10 21:31:19 -0800
committerJunio C Hamano <gitster@pobox.com>2009-02-10 21:31:19 -0800
commitf1c8a48a2de69bfc9837c53f2c52ffbe7239dc3e (patch)
treedbf5e4b02e89a51e9bd00cea133c105a51e86302 /builtin-ls-tree.c
parent8c5514906a532f154aa0db1199f46bbdeeffb0ad (diff)
parentd3bee161fef7820e83b44b899c531228a5546e87 (diff)
downloadgit-f1c8a48a2de69bfc9837c53f2c52ffbe7239dc3e.tar.xz
Merge branch 'lh/submodule-tree-traversal' (early part)
* 'lh/submodule-tree-traversal' (early part): tree.c: allow read_tree_recursive() to traverse gitlink entries
Diffstat (limited to 'builtin-ls-tree.c')
-rw-r--r--builtin-ls-tree.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/builtin-ls-tree.c b/builtin-ls-tree.c
index 5b63e6eada..fca46312f6 100644
--- a/builtin-ls-tree.c
+++ b/builtin-ls-tree.c
@@ -68,13 +68,8 @@ static int show_tree(const unsigned char *sha1, const char *base, int baselen,
*
* Something similar to this incomplete example:
*
- if (show_subprojects(base, baselen, pathname)) {
- struct child_process ls_tree;
-
- ls_tree.dir = base;
- ls_tree.argv = ls-tree;
- start_command(&ls_tree);
- }
+ if (show_subprojects(base, baselen, pathname))
+ retval = READ_TREE_RECURSIVE;
*
*/
type = commit_type;