libgit2

git_repository_mergehead_foreach

Version:

If a merge is in progress, call callback 'cb' for each commit ID in the MERGE_HEAD file.

Signature

int git_repository_mergehead_foreach(git_repository *repo, git_repository_mergehead_foreach_cb callback, void *payload);

Parameters

In
repo

A repository object

In
callback

Callback function

void *
In
payload

Pointer to callback data (optional)

Returns

int

0 on success, GIT_ENOTFOUND, GIT_EUSER or error

Versions