submodule: inline submodule_commits() into caller