libgit2

git_note_create

Version:

Add a note for an object

Signature

int git_note_create(git_oid *out, git_repository *repo, git_signature *author, git_signature *committer, const char *notes_ref, const git_oid *oid, const char *note);

Parameters

In
out
In
repo

the Git repository

In
author

signature of the notes commit author

In
committer

signature of the notes commit committer

const char *
In
notes_ref

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

In
oid

pointer to store the OID (optional); NULL in case of error

const char *
In
note

Returns

int

0 or an error code

Versions