submodule: store new submodule commits oid_array in a struct
commit6e1e0c9959f1df4b8c5aafb69d149374720b26dc
authorGlen Choo <chooglen@google.com>
Tue, 8 Mar 2022 00:14:29 +0000 (7 16:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Mar 2022 00:51:03 +0000 (7 16:51 -0800)
tree01c5316d717b3893ec6402acfb2411b8c49d847a
parent1e5dd3a1114643ca43e3d83da4f5c44447f061ff
submodule: store new submodule commits oid_array in a struct

This commit prepares for a future commit that will teach `git fetch
--recurse-submodules` how to fetch submodules that are present in
<gitdir>/modules, but are not populated. To do this, we need to store
more information about the changed submodule so that we can read the
submodule configuration from the superproject commit instead of the
filesystem.

Refactor the changed submodules string_list.util to hold a struct
instead of an oid_array. This struct only holds the new_commits
oid_array for now; more information will be added later.

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