Add a note for an object
the Git repository
signature of the notes commit author
signature of the notes commit committer
OID reference to update (optional); defaults to "refs/notes/commits"
pointer to store the OID (optional); NULL in case of error
0 or an error code