libgit2

git_note_iterator_new

Version:

Creates a new iterator for notes

The iterator must be freed manually by the user.

Signature

int git_note_iterator_new(git_note_iterator **out, git_repository *repo, const char *notes_ref);

Parameters

In
out

pointer to the iterator

In
repo

repository where to look up the note

const char *
In
notes_ref

canonical name of the reference to use (optional); defaults to "refs/notes/commits"

Returns

int

0 or an error code

Versions