Re: [PATCH 7/7] submodule--helper: introduce new update-module-mode helper

2018-08-20 Thread Stefan Beller
On Sat, Aug 18, 2018 at 9:11 AM Duy Nguyen wrote: > > On Tue, Aug 14, 2018 at 12:45 AM Stefan Beller wrote: > > +static int module_update_module_mode(int argc, const char **argv, const > > char *prefix) > > +{ > > + const char *path, *update = NULL; > > + int just_cloned; > > +

Re: [PATCH 7/7] submodule--helper: introduce new update-module-mode helper

2018-08-18 Thread Duy Nguyen
On Tue, Aug 14, 2018 at 12:45 AM Stefan Beller wrote: > +static int module_update_module_mode(int argc, const char **argv, const char > *prefix) > +{ > + const char *path, *update = NULL; > + int just_cloned; > + struct submodule_update_strategy update_strategy = { .type = >

[PATCH 7/7] submodule--helper: introduce new update-module-mode helper

2018-08-13 Thread Stefan Beller
This chews off a bit of the shell part of the update command in git-submodule.sh. When writing the C code, keep in mind that the submodule--helper part will go away eventually and we want to have a C function that is able to determine the submodule update strategy, it as a nicety, make

[PATCH 7/7] submodule--helper: introduce new update-module-mode helper

2018-08-03 Thread Stefan Beller
This chews off a bit of the shell part of the update command in git-submodule.sh. When writing the C code, keep in mind that the submodule--helper part will go away eventually and we want to have a C function that is able to determine the submodule update strategy, it as a nicety, make