X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-ls-tree.c;h=cb61717685b09a2e409440206e27fce68831e04d;hb=1e368681bd8c35202b91f8998e07d8bbb3de6c7c;hp=d25767a1f7eb0a8b45bc1eed6b9aa95de0847f18;hpb=588c038ac690e012a00dcace34fb318449f5ec7c;p=git.git diff --git a/builtin-ls-tree.c b/builtin-ls-tree.c index d25767a1f..cb6171768 100644 --- a/builtin-ls-tree.c +++ b/builtin-ls-tree.c @@ -66,17 +66,16 @@ static int show_tree(const unsigned char *sha1, const char *base, int baselen, /* * Maybe we want to have some recursive version here? * - * Something like: + * Something similar to this incomplete example: * if (show_subprojects(base, baselen, pathname)) { - if (fork()) { - chdir(base); - exec ls-tree; - } - waitpid(); + struct child_process ls_tree; + + ls_tree.dir = base; + ls_tree.argv = ls-tree; + start_command(&ls_tree); } * - * ..or similar.. */ type = commit_type; } else if (S_ISDIR(mode)) {