submodule.c: factor out early loop termination in is_submodule_modified
commit64f9a946f07d2ca00b34c466654a3f608c78b6af
authorStefan Beller <sbeller@google.com>
Sat, 25 Mar 2017 00:36:05 +0000 (24 17:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 16:48:19 +0000 (27 09:48 -0700)
tree38bd30295df727b3f15c060095a358fe43fc55b4
parentd0d7fed1a2522cc82dfa934df0cdd362a66058b1
submodule.c: factor out early loop termination in is_submodule_modified

This makes it easier for a follow up patch.

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