Re: [PATCH 5/7] submodule--helper module_list_compute: allow label or name arguments

2016-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Stefan Beller writes: > >> +static void split_argv_pathspec_groups(int argc, const char **argv, >> + const char ***pathspec_argv, >> + struct string_list *group) >> +{ >> +int i; >> +struct argv_

Re: [PATCH 5/7] submodule--helper module_list_compute: allow label or name arguments

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > +static void split_argv_pathspec_groups(int argc, const char **argv, > +const char ***pathspec_argv, > +struct string_list *group) > +{ > + int i; > + struct argv_array ps = ARGV_ARRAY_INIT; >

[PATCH 5/7] submodule--helper module_list_compute: allow label or name arguments

2016-05-10 Thread Stefan Beller
Additionally to taking a pathspec, `module_list_compute` will also take labels and submodule names, when these are prefixed by '*' and ':' respectively. `module_list_compute` is used by other functions in the submodule helper: * module_list, used by `submodule {deinit, status, sync, foreach}` * mo