Re: [GSoC][PATCH 2/6 v2] submodule: port subcommand foreach from shell to C

2017-06-26 Thread Christian Couder
On Tue, Jun 27, 2017 at 1:11 AM, Prathamesh Chavan wrote: > + > + if (!is_submodule_populated_gently(list_item->name, NULL)) > + goto cleanup; > + > + prepare_submodule_repo_env(&cp.env_array); > + /* For the purpose of executing in the submodule, > +* sepa

[GSoC][PATCH 2/6 v2] submodule: port subcommand foreach from shell to C

2017-06-26 Thread Prathamesh Chavan
This aims to make git-submodule foreach a builtin. This is the very first step taken in this direction. Hence, 'foreach' is ported to submodule--helper, and submodule--helper is called from git-submodule.sh. The code is split up to have one function to obtain all the list of submodules. This functi