[ Web Proxy ]
URL:
Viewing: https://libgit2.org/docs/reference/v1.7.2/notes/git_note_commit_create.html [Back]  [Original]

git_note_commit_create (libgit2 v1.7.2)
libgit2 [libgit2]

git_note_commit_create

Version: main v1.8.4 v1.8.3 v1.8.2 v1.8.2-rc1 v1.8.1 v1.8.0 v1.7.2 v1.7.1 v1.7.0 v1.6.5 v1.6.4 v1.6.3 v1.6.2 v1.6.1 v1.5.2 v1.5.1 v1.5.0 v1.4.6 v1.4.5 v1.4.4 v1.4.3 v1.4.2 v1.4.1 v1.4.0 v1.3.2 v1.3.1 v1.3.0 v1.2.0 v1.1.1 v1.1.0 v1.0.1 v1.0.0 v0.99.0 v0.28.5 v0.28.4 v0.28.3 v0.28.2 v0.28.1 v0.28.0 v0.28.0-rc1 v0.27.10 v0.27.9 v0.27.8 v0.27.7 v0.27.6 v0.27.5 v0.27.4 v0.27.3 v0.27.2 v0.27.1 v0.27.0 v0.27.0-rc3 v0.27.0-rc2 v0.27.0-rc1

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.

Signature

int git_note_commit_create(git_oid *notes_commit_out, git_oid *notes_blob_out, git_repository *repo, git_commit *parent, const git_signature *author, const git_signature *committer, const git_oid *oid, const char *note, int allow_note_overwrite);

Parameters

In
notes_commit_out

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

In
notes_blob_out

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

In
repo

repository where the note will live

In
parent

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

In
author

signature of the notes commit author

In
committer

signature of the notes commit committer

In
oid

OID of the git object to decorate

const char *
In
note

Content of the note to add for object oid

int
In
allow_note_overwrite

Overwrite existing note

Returns

int

0 or an error code

Versions

This open sourced site is hosted on GitHub. Patches, suggestions, and comments are welcome.

Web Proxy Viewer  |  New URL  |  Original Page