submodule: convert get_next_submodule to not rely on the_index
authorBrandon Williams <bmwill@google.com>
Tue, 12 Dec 2017 19:53:52 +0000 (11:53 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Dec 2017 20:35:22 +0000 (12:35 -0800)
commite724197f236aa1a4fa87a8e7dd1377dbd0199307
treeddda111031aff6b51fbf9a83ef65fc3ee356f8b1
parent7da9aba417868afa11ef0baa4078dc2dadde5333
submodule: convert get_next_submodule to not rely on the_index

Instead of implicitly relying on the global 'the_index', convert
'get_next_submodule()' to use the index of the repository stored in the
callback data 'struct submodule_parallel_fetch'.

Since this removes the last user of the index compatibility macros,
define 'NO_THE_INDEX_COMPATIBILITY_MACROS' to prevent future users of
these macros in submodule.c.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
submodule.c
submodule.h