libgit2

git_note_create

Version:

Add a note for an object

Signature

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

Parameters

In
out

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

In
repo

repository where to store the note

In
author

signature of the notes commit author

In
committer

signature of the notes commit committer

const char *
In
notes_ref

canonical name of the reference to use (optional); defaults to "refs/notes/commits"

In
oid

OID of the git object to decorate

const char *
In
note

Content of the note to add for object oid

int
In
force

Overwrite existing note

Returns

int

0 or an error code

Versions