libgit2

git_note_commit_read

Version:

Read the note for an object from a note commit

The note must be freed manually by the user.

Signature

int git_note_commit_read(git_note **out, git_repository *repo, git_commit *notes_commit, const git_oid *oid);

Parameters

In
out

pointer to the read note; NULL in case of error

In
repo

repository where to look up the note

In
notes_commit

a pointer to the notes commit object

In
oid

OID of the git object to read the note from

Returns

int

0 or an error code

Versions