libgit2

git_commit_create_v

Version:

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

The message will not be cleaned up automatically. You can do that with the git_message_prettify() function.

The parents for the commit are specified as a variable list of pointers to const git_commit *. 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 as git_commit_create().

See

Signature

int git_commit_create_v(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_tree *tree, size_t parent_count);

Parameters

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

Returns

int

Versions