submodule--helper: introduce new update-module-mode helper
commitee69b2a90c5031bffb3341c5e50653a6ecca89ac
authorStefan Beller <sbeller@google.com>
Mon, 13 Aug 2018 22:42:35 +0000 (13 15:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Aug 2018 21:01:04 +0000 (14 14:01 -0700)
tree27d7a55f1c8a14cc3f5a65d601379700311589b5
parent74d4731da1fd61e3705e808bcd496979ef8ddf5a
submodule--helper: introduce new update-module-mode helper

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 determine_submodule_update_strategy accessible
for arbitrary repositories.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-submodule.sh