submodule--helper: reorganize code for sh to C conversion
commit1a0b78c9537571c18bafc4ac6e3fc16fe6b63c84
authorGlen Choo <chooglen@google.com>
Sat, 5 Mar 2022 00:13:51 +0000 (4 16:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Mar 2022 00:39:11 +0000 (4 16:39 -0800)
tree1255983597981806688752950a23a969f53b7de3
parentf7bdb3291873f0c10ad63015b18d1caf1ec719d7
submodule--helper: reorganize code for sh to C conversion

Introduce a function, update_submodule2(), that will implement the
functionality of run-update-procedure and its surrounding shell code in
submodule.sh. This name is temporary; it will replace update_submodule()
when the sh to C conversion is complete.

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c