git_commit_create_with_signature

Create a commit object from the given buffer and signature

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

extern (C) nothrow @nogc public
int
git_commit_create_with_signature

Parameters

out_ libgit2.oid.git_oid*

the resulting commit id

repo libgit2.types.git_repository*

the repository to create the commit in.

commit_content const(char)*

the content of the unsigned commit object

signature const(char)*

the signature to add to the commit. Leave null to create a commit without adding a signature field.

signature_field const(char)*

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

Return Value

Type: int

0 or an error code

Meta