libgit2

git_note_read

Version:

Read the note for an object

The note must be freed manually by the user.

Signature

int git_note_read(git_note **note, git_repository *repo, const char *notes_ref, const git_oid *oid);

Parameters

In
note

the note; NULL in case of error

In
repo

the Git repository

const char *
In
notes_ref

OID reference to use (optional); defaults to "refs/notes/commits"

In
oid

OID of the object

Returns

int

0 or an error code

Versions