Read the note for an object
The note must be freed manually by the user.
the note; NULL in case of error
the Git repository
OID reference to use (optional); defaults to "refs/notes/commits"
OID of the object
0 or an error code