builtin/submodule--helper: store update_clone information in a struct
commitf1d15713faef54c0bcc5d35c9089efffa4c914a1
authorStefan Beller <sbeller@google.com>
Fri, 3 Aug 2018 22:23:19 +0000 (3 15:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Aug 2018 22:37:12 +0000 (3 15:37 -0700)
treeb4fff8ea830e754128c535f713d7e5bde55f9523
parent90efe595c53f4bb1851371344c35eff71f604d2b
builtin/submodule--helper: store update_clone information in a struct

The information that is printed for update_submodules in
'submodule--helper update-clone' and consumed by 'git submodule update'
is stored as a string per submodule. This made sense at the time of
48308681b07 (git submodule update: have a dedicated helper for cloning,
2016-02-29), but as we want to migrate the rest of the submodule update
into C, we're better off having access to the raw information in a helper
struct.

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