libgit2

git_repository_state_cleanup

Version:

Remove all the metadata associated with an ongoing command like merge, revert, cherry-pick, etc. For example: MERGE_HEAD, MERGE_MSG, etc.

Signature

int git_repository_state_cleanup(git_repository *repo);

Parameters

In
repo

A repository object

Returns

int

0 on success, or error

Versions