libgit2

git_note_foreach

Version:

Loop over all the notes within a specified namespace and issue a callback for each one.

Signature

int git_note_foreach(git_repository *repo, const char *notes_ref, git_note_foreach_cb note_cb, void *payload);

Parameters

In
repo

Repository where to find the notes.

const char *
In
notes_ref

Reference to read from (optional); defaults to "refs/notes/commits".

In
note_cb

Callback to invoke per found annotation. Return non-zero to stop looping.

void *
In
payload

Extra parameter to callback function.

Returns

int

0 on success, non-zero callback return value, or error code

Versions