Re: [PATCHv4 6/7] submodule--helper: add remote-branch helper

2016-08-03 Thread Stefan Beller
On Wed, Aug 3, 2016 at 4:13 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c >> index fb90c64..9be2c75 100644 >> --- a/builtin/submodule--helper.c >> +++ b/builtin/submodule--helper.c >> @@ -899,6 +899,39 @@ static int r

Re: [PATCHv4 6/7] submodule--helper: add remote-branch helper

2016-08-03 Thread Junio C Hamano
Stefan Beller writes: > diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c > index fb90c64..9be2c75 100644 > --- a/builtin/submodule--helper.c > +++ b/builtin/submodule--helper.c > @@ -899,6 +899,39 @@ static int resolve_relative_path(int argc, const char > **argv, const char

[PATCHv4 6/7] submodule--helper: add remote-branch helper

2016-08-03 Thread Stefan Beller
In a later patch we want to enhance the logic for the branch selection. Rewrite the current logic to be in C, so we can directly use C when we enhance the logic. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- builtin/submodule--helper.c | 36 +++-