Read the note for an object
The note must be freed manually by the user.
pointer to the read note; NULL in case of error
repository where to look up the note
canonical name of the reference to use (optional); defaults to "refs/notes/commits"
OID of the git object to read the note from
0 or an error code