libgit2

git_commit_create_from_ids

Version:

Create new commit in the repository from a list of git_oid values.

See documentation for git_commit_create() for information about the parameters, as the meaning is identical excepting that tree and parents now take git_oid. This is a dangerous API in that nor the tree, neither the parents list of git_oids are checked for validity.

See

Signature

int git_commit_create_from_ids(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, size_t parent_count, const git_oid **parents);

Parameters

In
id
const char *
In
update_ref
In
committer
const char *
In
message_encoding
const char *
In
message
In
tree
size_t
In
parent_count
In
parents

Returns

int

Versions