submodule: inline submodule_commits() into caller
commit1e5dd3a1114643ca43e3d83da4f5c44447f061ff
authorGlen Choo <chooglen@google.com>
Tue, 8 Mar 2022 00:14:28 +0000 (7 16:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Mar 2022 00:51:03 +0000 (7 16:51 -0800)
treee0f976e8016b84ccf93e8145add5d86f88c10680
parent7c2f8cc58cc3648a0e1e4c76be15a09114b4d9dd
submodule: inline submodule_commits() into caller

When collecting the string_list of changed submodule names, the new
submodules commits are stored in the string_list_item.util as an
oid_array. A subsequent commit will replace the oid_array with a struct
that has more information.

Prepare for this change by inlining submodule_commits() (which inserts
into the string_list and initializes the string_list_item.util) into its
only caller so that the code is easier to refactor later.

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