serialize collection of changed submodules
commit147394470c4be34038e520e74a017da6a3745e90
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Nov 2016 15:11:04 +0000 (16 16:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Nov 2016 19:12:50 +0000 (16 11:12 -0800)
treec37ac4c9ee5ac8e471e5c79d89f60648516e9577
parent8a36cd87b7c85a651ab388d403629865ffa3ba0d
serialize collection of changed submodules

To check whether a submodule needs to be pushed we need to collect all
changed submodules. Lets collect them first and then execute the
possibly expensive test whether certain revisions are already pushed
only once per submodule.

There is further potential for optimization since we can assemble one
command and only issued that instead of one call for each remote ref in
the submodule.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c