Re: [PATCH 4/7] submodule-config: check if a submodule is in a group

2016-05-10 Thread Junio C Hamano
Stefan Beller writes: > +static int in_group(int argc, const char **argv, const char *prefix) > + ... > + if (!group) > + list = git_config_get_value_multi("submodule.updateGroup"); > + else { > + string_list_split(_list, group, ',', -1); Is

[PATCH 4/7] submodule-config: check if a submodule is in a group

2016-05-10 Thread Stefan Beller
In later patches we need to tell if a submodule is in a group, so expose a handy test function in both C and shell. Signed-off-by: Stefan Beller --- builtin/submodule--helper.c | 42 +++- submodule-config.c | 50