libgit2

git_submodule_reload

Version:

Reread submodule info from config, index, and HEAD.

Call this to reread cached submodule information for this submodule if you have reason to believe that it has changed.

Signature

int git_submodule_reload(git_submodule *submodule, int force);

Parameters

In
submodule

The submodule to reload

int
In
force

Force reload even if the data doesn't seem out of date

Returns

int

0 on success, < 0 on error

Versions