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/rebase.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/rebase.h')
-rw-r--r-- | include/git2/rebase.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/git2/rebase.h b/include/git2/rebase.h index 7d2d5de69..11e452cbf 100644 --- a/include/git2/rebase.h +++ b/include/git2/rebase.h @@ -86,17 +86,26 @@ typedef struct { */ git_commit_create_cb commit_create_cb; +#ifdef GIT_DEPRECATE_HARD + void *reserved; +#else /** * If provided, this will be called with the commit content, allowing * a signature to be added to the rebase commit. Can be skipped with * GIT_PASSTHROUGH. If GIT_PASSTHROUGH is returned, a commit will be made * without a signature. + * * This field is only used when performing git_rebase_commit. * * This callback is not invoked if a `git_commit_create_cb` is * specified. + * + * This callback is deprecated; users should provide a + * creation callback as `commit_create_cb` that produces a + * commit buffer, signs it, and commits it. */ - git_commit_signing_cb signing_cb; + int (*signing_cb)(git_buf *, git_buf *, const char *, void *); +#endif /** * This will be passed to each of the callbacks in this struct |