diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-29 10:14:01 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-29 10:16:56 -0400 |
commit | ef03e15038824c8951eede2f17ad9dafbd5a32d3 (patch) | |
tree | cfc3926004f3fd402a1903b3657912ccfff53b57 /include/git2/commit.h | |
parent | d3bdf33b58f16939a4fd43ab541dcd2ee535b6a3 (diff) | |
download | libgit2-ethomson/commit_create_cb.tar.gz |
rebase: deprecate signing_cbethomson/commit_create_cb
The signing callback should not be used; instead, callers should provide
a commit_create_cb, perform the signing and commit creation themselves.
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r-- | include/git2/commit.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h index 650bf65a5..4d74b8994 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -539,27 +539,6 @@ typedef int (*git_commit_create_cb)( const git_commit *parents[], void *payload); -/** - * Commit signing callback. - * - * The callback will be called with the commit content, giving a user an - * opportunity to sign the commit content. The signature_field - * buf may be left empty to specify the default field "gpgsig". - * - * Signatures can take the form of any string, and can be created on an arbitrary - * header field. Signatures are most commonly used for verifying authorship of a - * commit using GPG or a similar cryptographically secure signing algorithm. - * See https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work for more - * details. - * - * When the callback: - * - returns GIT_PASSTHROUGH, no signature will be added to the commit. - * - returns < 0, commit creation will be aborted. - * - returns GIT_OK, the signature parameter is expected to be filled. - */ -typedef int (*git_commit_signing_cb)( - git_buf *signature, git_buf *signature_field, const char *commit_content, void *payload); - /** @} */ GIT_END_DECL #endif |