git_repository_fetchhead_foreach

Invoke 'callback' for each entry in the given FETCH_HEAD file.

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

extern (C) nothrow @nogc
int
git_repository_fetchhead_foreach

Parameters

repo libgit2_d.types.git_repository*

A repository object

callback .git_repository_fetchhead_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 FETCH_HEAD file, or other error code.

Meta