git_note_commit_create

Add a note for an object from a commit

This function will create a notes commit for a given object, the commit is a dangling commit, no reference is created.

Parameters

notes_commit_out libgit2_d.oid.git_oid*

pointer to store the commit (optional); null in case of error

notes_blob_out libgit2_d.oid.git_oid*

a point to the id of a note blob (optional)

repo libgit2_d.types.git_repository*

repository where the note will live

parent libgit2_d.types.git_commit*

Pointer to parent note or null if this shall start a new notes tree

author const(libgit2_d.types.git_signature)*

signature of the notes commit author

committer const(libgit2_d.types.git_signature)*

signature of the notes commit committer

oid const(libgit2_d.oid.git_oid)*

OID of the git object to decorate

note const(char)*

Content of the note to add for object oid

allow_note_overwrite int

Overwrite existing note

Return Value

Type: int

0 or an error code

Meta