summaryrefslogtreecommitdiff
path: root/reset.c
diff options
context:
space:
mode:
authorLibravatar Glen Choo <chooglen@google.com>2022-03-07 16:14:30 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-07 16:51:03 -0800
commit73bc90d7e19c471318e799624b6d4c6d449c655d (patch)
tree51a7e2eccfe47146fe967ab50df008c3c202ecb9 /reset.c
parentsubmodule: store new submodule commits oid_array in a struct (diff)
downloadtgif-73bc90d7e19c471318e799624b6d4c6d449c655d.tar.xz
submodule: extract get_fetch_task()
get_next_submodule() configures the parallel submodule fetch by performing two functions: * iterate the index to find submodules * configure the child processes to fetch the submodules found in the previous step Extract the index iterating code into an iterator function, get_fetch_task(), so that get_next_submodule() is agnostic of how to find submodules. This prepares for a subsequent commit will teach the fetch machinery to also iterate through the list of changed submodules (in addition to the index). Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reset.c')
0 files changed, 0 insertions, 0 deletions