libgit2

git_commit_create_from_oids

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.

Signature

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

Parameters

In
oid
const char *
In
update_ref
In
committer
const char *
In
message_encoding
const char *
In
message
In
tree
int
In
parent_count
In
parents

Returns

int

Versions