libgit2

git_submodule_status

Version:

Get the status for a submodule.

This looks at a submodule and tries to determine the status. It will return a combination of the GIT_SUBMODULE_STATUS values above. How deeply it examines the working directory to do this will depend on the git_submodule_ignore_t value for the submodule - which can be set either temporarily or permanently with git_submodule_set_ignore().

Signature

int git_submodule_status(unsigned int *status, git_submodule *submodule);

Parameters

unsigned int *
In
status

Combination of GIT_SUBMODULE_STATUS flags

In
submodule

Submodule for which to get status

Returns

int

0 on success, < 0 on error

Versions