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, int (*)(git_note_data *, void *) note_cb, void *payload);

Parameters

In
repo

Repository where to find the notes.

const char *
In
notes_ref

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

int (*)(git_note_data *, void *)
In
note_cb

Callback to invoke per found annotation.

void *
In
payload

Extra parameter to callback function.

Returns

int

0 or an error code.

Versions