Re: [PATCH 4/4] submodule: port submodule subcommand 'foreach' from shell to C

2018-05-10 Thread Junio C Hamano
Stefan Beller writes: > +static void runcommand_in_submodule_cb(const struct cache_entry *list_item, > +void *cb_data) > +{ > + struct cb_foreach *info = cb_data; > + const char *path = list_item->name; > + const struct

[PATCH 4/4] submodule: port submodule subcommand 'foreach' from shell to C

2018-05-08 Thread Stefan Beller
From: Prathamesh Chavan This aims to make git-submodule foreach a builtin. 'foreach' is ported to the submodule--helper, and submodule--helper is called from git-submodule.sh. Helped-by: Brandon Williams Mentored-by: Christian Couder