libgit2

git_submodule_sync

Version:

Copy submodule remote info into submodule repo.

This copies the information about the submodules URL into the checked out submodule config, acting like "git submodule sync". This is useful if you have altered the URL for the submodule (or it has been altered by a fetch of upstream changes) and you need to update your local repo.

Signature

int git_submodule_sync(git_submodule *submodule);

Parameters

In
submodule

Returns

int

Versions