libgit2

git_commit_create_v

Version:

Create a new commit in the repository using a variable argument list.

The parents for the commit are specified as a variable list of pointers to const git_oid *. Note that this is a convenience method which may not be safe to export for certain languages or compilers

All other parameters remain the same

See

Signature

int git_commit_create_v(git_oid *oid, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message, const git_oid *tree_oid, int parent_count);

Parameters

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

Returns

int

Versions