[PATCH 2/2] submodule: port init from shell to C

2016-04-15 Thread Stefan Beller
By having the `submodule init` functionality in C, we can reference it easier from other parts in the code in later patches. The code is split up to have one function to initialize one submodule and a calling function that takes care of the rest, such as argument handling and translating the

[PATCH 2/2] submodule: port init from shell to C

2016-04-14 Thread Stefan Beller
By having the `submodule init` functionality in C, we can reference it easier from other parts in the code in later patches. The code is split up to have one function to initialize one submodule and a calling function that takes care of the rest, such as argument handling and translating the

[PATCH 2/2] submodule: port init from shell to C

2016-04-12 Thread Stefan Beller
By having the `init` functionality in C, we can reference it easier from other parts in the code. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- builtin/submodule--helper.c | 107

[PATCH 2/2] submodule: port init from shell to C

2016-03-14 Thread Stefan Beller
By having the `init` functionality in C, we can reference it easier from other parts in the code. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- builtin/submodule--helper.c | 107

Re: [PATCH 2/2] submodule: port init from shell to C

2016-02-18 Thread Junio C Hamano
Junio C Hamano writes: >> +strbuf_reset(); >> +strbuf_addf(, "submodule.%s.url", sub->name); >> +if (git_config_get_string(sb.buf, )) { >> +url = xstrdup(sub->url); >> +if (!url) >> +die(_("No url found for submodule path

Re: [PATCH 2/2] submodule: port init from shell to C

2016-02-18 Thread Junio C Hamano
Stefan Beller writes: > By having the `init` functionality in C, we can reference it easier > from other parts in the code. > > Signed-off-by: Stefan Beller > --- > builtin/submodule--helper.c | 107 > >

[PATCH 2/2] submodule: port init from shell to C

2016-02-12 Thread Stefan Beller
By having the `init` functionality in C, we can reference it easier from other parts in the code. Signed-off-by: Stefan Beller --- builtin/submodule--helper.c | 107 git-submodule.sh| 39 +--- submodule.c