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.

Signature

int git_submodule_status(unsigned int *status, git_repository *repo, const char *name, git_submodule_ignore_t ignore);

Parameters

unsigned int *
In
status

Combination of GIT_SUBMODULE_STATUS flags

In
repo

the repository in which to look

const char *
In
name

name of the submodule

In
ignore

the ignore rules to follow

Returns

int

0 on success, < 0 on error

Versions