Re: [PATCHv11 1/7] submodule-config: keep update strategy around

2016-02-18 Thread Junio C Hamano
Stefan Beller writes: > @@ -340,6 +342,16 @@ static int parse_config(const char *var, const char > *value, void *data) > free((void *) submodule->url); > submodule->url = xstrdup(value); > } > + } else if (!strcmp(item.buf, "update"))

[PATCHv11 1/7] submodule-config: keep update strategy around

2016-02-12 Thread Stefan Beller
Currently submodule..update is only handled by git-submodule.sh. C code will start to need to make use of that value as more of the functionality of git-submodule.sh moves into library code in C. Add the update field to 'struct submodule' and populate it so it can be read as sm->update or from sm-