submodule: store OIDs in changed_submodule_names
commitbcd7337243f4f20091d478c71682d68dd2100207
authorStefan Beller <sbeller@google.com>
Thu, 29 Nov 2018 00:27:52 +0000 (28 16:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Dec 2018 02:42:31 +0000 (5 11:42 +0900)
tree543ca9ce59ff9dd31b440cbb9ceb696b0fcdaee6
parent16dd6fe133cc3693f0daad0d10c4f65713e36de4
submodule: store OIDs in changed_submodule_names

'calculate_changed_submodule_paths' uses a local list to compute the
changed submodules, and then produces the result by copying appropriate
items into the result list.

Instead use the result list directly and prune items afterwards
using string_list_remove_empty_items.

By doing so we'll have access to the util pointer for longer that
contains the commits that we need to fetch, which will be
useful in a later patch.

Signed-off-by: Stefan Beller <sbeller@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c