Re: [PATCH 1/2] ls-files: optionally recurse into submodules

2016-09-23 Thread Brandon Williams
On Wed, Sep 21, 2016 at 11:20 PM, Jeff King wrote: >> +/** >> + * Recursively call ls-files on a submodule >> + */ >> +static void show_gitlink(const struct cache_entry *ce) >> +{ >> + struct child_process cp = CHILD_PROCESS_INIT; >> + int status; >> + >> +

Re: [PATCH 1/2] ls-files: optionally recurse into submodules

2016-09-22 Thread Jeff King
On Wed, Sep 21, 2016 at 03:42:52PM -0700, Brandon Williams wrote: > @@ -68,6 +71,21 @@ static void write_eolinfo(const struct cache_entry *ce, > const char *path) > static void write_name(const char *name) > { > /* > + * NEEDSWORK: To make this thread-safe, full_name would have to

[PATCH 1/2] ls-files: optionally recurse into submodules

2016-09-21 Thread Brandon Williams
Allow ls-files to recognize submodules in order to retrieve a list of files from a repository's submodules. This is done by forking off a process to recursively call ls-files on all submodules. Also added a submodule-prefix command in order to prepend paths to child processes. Signed-off-by: