diff options
author | Tyler Wanek <tylerw@axosoft.com> | 2019-01-11 09:16:58 -0700 |
---|---|---|
committer | Tyler Wanek <tylerw@axosoft.com> | 2019-01-23 17:13:22 -0700 |
commit | 546e40c9b9da8cc7f7c992829ae927d07132236a (patch) | |
tree | 2c1a466fce9de7d9ae5c648d161ef5759b6c6109 /src/commit.c | |
parent | 635693d3bc55770ec7a6640ba3f2f0ee434a6042 (diff) | |
download | libgit2-546e40c9b9da8cc7f7c992829ae927d07132236a.tar.gz |
Add signing callbacks for git_rebase_commit in git_rebase_options
2 callbacks have been added to git_rebase_options, git_rebase_commit_signature_cb and git_rebase_commit_signature_field_cb. When git_rebase_commit_signature_cb is present in git_rebase_options, it will be called whenever git_rebase_commit is performed, giving an opportunity to sign the commit. The signing procedure can be skipped if the callback specifies passthrough as the error. The git_rebase_commit_signature_field_cb will only be called if the other callback is present or did not passthrough, and it provides means to specify which field a signature is for.
Git_rebase_options was chosen as the home for these callbacks as it keeps backwards compatibility with the current rebase api.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions