git_repository_mergehead_foreach

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

Return a non-zero value from the callback to stop the loop.

extern (C) nothrow @nogc
int
git_repository_mergehead_foreach

Parameters

repo libgit2_d.types.git_repository*

A repository object

callback .git_repository_mergehead_foreach_cb

Callback function

payload void*

Pointer to callback data (optional)

Return Value

Type: int

0 on success, non-zero callback return value, git_error_code.GIT_ENOTFOUND if there is no MERGE_HEAD file, or other error code.

Meta