amend
Description:
public OId? amend (string? update_ref, Signature author, Signature committer, string? message_encoding, string message, Tree tree) throws Error
Amend an existing 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 Commit. |
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. |
Returns:
the OId of the created commit object, or null in case of an error. |