Method
GgitRepositorycreate_commit_with_signature
Declaration [src]
GgitOId*
ggit_repository_create_commit_with_signature (
GgitRepository* repository,
const gchar* commit_content,
const gchar* signature,
const gchar* signature_field,
GError** error
)
Description [src]
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
commit_content |
const gchar* |
The content of the unsigned commit. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
signature |
const gchar* |
The signature to add to the commit. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
signature_field |
const gchar* |
Which header field should contain this
signature. Leave |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GgitOId |
The |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |