libgit2

git_commit_create_o

Version:

Create a new commit in the repository using git_object instances as parameters.

The tree_oid and parent_oids paremeters now take a instance of git_tree and git_commit, respectively.

All other parameters remain the same

See

Signature

int git_commit_create_o(git_oid *oid, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message, const git_tree *tree, int parent_count, const git_commit **parents);

Parameters

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

Returns

int

Versions