list static method
Returns list of notes for repository.
notesRef is the canonical name of the reference to use. Defaults to "refs/notes/commits".
Throws a LibGit2Error if:
- The repository is invalid
- The notes reference is invalid
- Memory allocation fails
Implementation
static List<Note> list(
Repository repo, {
String notesRef = 'refs/notes/commits',
}) {
final notesPointers = bindings.list(
repoPointer: repo.pointer,
notesRef: notesRef,
);
return notesPointers
.map(
(e) => Note(
e['note']! as Pointer<git_note>,
e['annotatedOid']! as Pointer<git_oid>,
),
)
.toList();
}