]> granicus.if.org Git - git/commit
submodule--helper: introduce for_each_listed_submodule()
authorPrathamesh Chavan <pc44800@gmail.com>
Fri, 6 Oct 2017 13:24:14 +0000 (18:54 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Oct 2017 08:52:35 +0000 (17:52 +0900)
commit9f580a6260ab301916286fb6ca05f6613e9904e8
tree31c19b17b55f7206fcfb329178322f56c339a182
parent74a10642aa88c52ebb169489ea212a592d7bf3ce
submodule--helper: introduce for_each_listed_submodule()

Introduce function for_each_listed_submodule() and replace a loop
in module_init() with a call to it.

The new function will also be used in other parts of the
system in later patches.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Prathamesh Chavan <pc44800@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c