libgit2

git_commit_create_v

Version:

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

The message will be cleaned up from excess whitespace and it will be made sure that the last line ends with a '\n '.

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 at 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, int parent_count);

Parameters

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

Returns

int

Versions