libgit2

git_repository_fetchhead_foreach

Version:

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

Signature

int git_repository_fetchhead_foreach(git_repository *repo, git_repository_fetchhead_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