create_commit
Description:
public OId? create_commit (string? update_ref, Signature author, Signature committer, string? message_encoding, string message, Tree tree, Commit[] parents) throws Error
Create a new commit.
If update_ref is not null, the given reference will be updated to point to the newly created
commit. Use "HEAD" to update the HEAD of the current branch and make it point to this commit.
If message_encoding is set to null, "UTF-8" encoding is assumed for the provided message
. Note that message will not be cleaned up automatically. You can use
message_prettify to do this yourself if needed.
Parameters:
| this |
a Repository. |
| update_ref |
name of the reference to update. |
| author |
author signature. |
| committer |
committer signature (and time of commit). |
| message_encoding |
message encoding. |
| message |
commit message. |
| tree |
the tree of objects to commit. |
| parents |
parent commits. |
| parent_count |
number of parent commits in |
Returns:
|
the OId of the created commit object, or null in case of an error. |