submodule: improve submodule_has_commits()
commit7c8d2b00f2516a0b30aaa3f59dceaf4fe83f8729
authorBrandon Williams <bmwill@google.com>
Tue, 2 May 2017 01:02:38 +0000 (1 18:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 May 2017 01:45:04 +0000 (2 10:45 +0900)
tree85dabcd646b4b88bde3d1d15b6c4b750097ce41a
parenta6bb78c3b19697133a01122c13993986b66ef28b
submodule: improve submodule_has_commits()

Teach 'submodule_has_commits()' to ensure that if a commit exists in a
submodule, that it is also reachable from a ref.

This is a preparatory step prior to merging the logic which checks for
changed submodules when fetching or pushing.

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