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()
.
If not NULL, name of the reference that will be updated to point to this commit. If the reference is not direct, it will be resolved to a direct reference. Use "HEAD" to update the HEAD of the current branch and make it point to this commit. If the reference doesn't exist yet, it will be created. If it does exist, the first parent must be the tip of this branch.
The encoding for the message in the commit, represented with a standard encoding name. E.g. "UTF-8". If NULL, no encoding header is written and UTF-8 is assumed.
Full message for this commit
An instance of a git_tree
object that will be used as the tree for the commit. This tree object must also be owned by the given repo
.
Number of parents for this commit
0 or an error code The created commit will be written to the Object Database and the given reference will be updated to point to it