create_commit_with_signature


Description:

public OId? create_commit_with_signature (string commit_content, string? signature, string? signature_field) throws Error

Given the unsigned commit object's contents, its signature and the header field in which to store the signature, attach the signature to the commit and write it into the given repositoryCreate a new commit using the (if not NULL) signature key and type of key provided.

Parameters:

this

a Repository.

commit_content

the content of the unsigned commit.

signature

the signature to add to the commit.

signature_field

which header field should contain this signature. Leave `NULL` for the default of "gpgsig".

Returns:

the OId of the created commit object, or null in case of an error.