Read the note for an object from a note commit
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
a pointer to the notes commit object
OID of the git object to read the note from
0 or an error code