[ Web Proxy ]
URL:
Viewing: https://libgit2.org/docs/reference/v1.3.2/commit/git_commit_create_with_signature.html [Back]  [Original]

git_commit_create_with_signature (libgit2 v1.3.2)
libgit2 [libgit2]

git_commit_create_with_signature

Version: main v1.8.4 v1.8.3 v1.8.2 v1.8.2-rc1 v1.8.1 v1.8.0 v1.7.2 v1.7.1 v1.7.0 v1.6.5 v1.6.4 v1.6.3 v1.6.2 v1.6.1 v1.5.2 v1.5.1 v1.5.0 v1.4.6 v1.4.5 v1.4.4 v1.4.3 v1.4.2 v1.4.1 v1.4.0 v1.3.2 v1.3.1 v1.3.0 v1.2.0 v1.1.1 v1.1.0 v1.0.1 v1.0.0 v0.99.0 v0.28.5 v0.28.4 v0.28.3 v0.28.2 v0.28.1 v0.28.0 v0.28.0-rc1 v0.27.10 v0.27.9 v0.27.8 v0.27.7 v0.27.6 v0.27.5 v0.27.4 v0.27.3 v0.27.2 v0.27.1 v0.27.0 v0.27.0-rc3 v0.27.0-rc2 v0.27.0-rc1 v0.26.8 v0.26.7 v0.26.6 v0.26.5 v0.26.4 v0.26.3 v0.26.2 v0.26.1 v0.26.0 v0.26.0-rc2 v0.26.0-rc1 v0.25.1 v0.25.0 v0.25.0-rc2 v0.25.0-rc1 v0.24.4

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.

Signature

int git_commit_create_with_signature(git_oid *out, git_repository *repo, const char *commit_content, const char *signature, const char *signature_field);

Parameters

In
out

the resulting commit id

const char *
In
commit_content

the content of the unsigned commit object

const char *
In
signature

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

const char *
In
signature_field

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

Returns

int

0 or an error code

Versions

This open sourced site is hosted on GitHub. Patches, suggestions, and comments are welcome.

Web Proxy Viewer  |  New URL  |  Original Page