libgit2

git_repository_state

Version:

Determines the status of a git repository - ie, whether an operation (merge, cherry-pick, etc) is in progress.

Signature

int git_repository_state(git_repository *repo);

Parameters

In
repo

Repository pointer

Returns

int

The state of the repository

Versions