create_commit_buffer


Description:

public string? create_commit_buffer (Signature author, Signature committer, string? message_encoding, string message, Tree tree, Commit[] parents) throws Error

Create a commit as with git_commit_create but instead of writing it to the objectdb, write the contents of the object into a buffer.

Parameters:

this

a Repository.

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 parents.

Returns:

the commit object content or null in case of an error.