libgit2

git_commit_create_from_callback

Version:

Create a new commit in the repository with an callback to supply parents.

See documentation for git_commit_create() for information about the parameters, as the meaning is identical excepting that tree takes a git_oid and doesn't check for validity, and parent_cb is invoked with parent_payload and should return git_oid values or NULL to indicate that all parents are accounted for.

See

Signature

int git_commit_create_from_callback(git_oid *id, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_oid *tree, git_commit_parent_callback parent_cb, void *parent_payload);

Parameters

In
id
const char *
In
update_ref
In
committer
const char *
In
message_encoding
const char *
In
message
In
tree
void *
In
parent_payload

Returns

int

Versions