diff options
| author | lhchavez <[email protected]> | 2021-09-03 06:40:31 -0700 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2021-09-05 18:52:01 -0700 |
| commit | 018647fd481a7eb4af97d5f61afc0fddfe76fc24 (patch) | |
| tree | 06f4af28f0298ffe4bd93d2061f7eb8c52518bc2 /wrapper.c | |
| parent | b78bde3d74b1617d5b635723552aaec0583eb054 (diff) | |
libgit2 v1.2.0 #major
This commit introduces libgit2 v1.2.0 to git2go, which brings a large
number of [bugfixes and
features](https://github.com/libgit2/libgit2/releases/tag/v1.2.0).
This also marks the start of the v32 release.
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 28 |
1 files changed, 19 insertions, 9 deletions
@@ -116,18 +116,28 @@ void _go_git_populate_apply_callbacks(git_apply_options *options) options->hunk_cb = (git_apply_hunk_cb)&hunkApplyCallback; } -static int commit_signing_callback( - git_buf *signature, - git_buf *signature_field, - const char *commit_contents, +static int commit_create_callback( + git_oid *out, + const git_signature *author, + const git_signature *committer, + const char *message_encoding, + const char *message, + const git_tree *tree, + size_t parent_count, + const git_commit *parents[], void *payload) { char *error_message = NULL; - const int ret = commitSigningCallback( + const int ret = commitCreateCallback( &error_message, - signature, - signature_field, - (char *)commit_contents, + out, + (git_signature *)author, + (git_signature *)committer, + (char *)message_encoding, + (char *)message, + (git_tree *)tree, + parent_count, + (git_commit **)parents, payload ); return set_callback_error(error_message, ret); @@ -135,7 +145,7 @@ static int commit_signing_callback( void _go_git_populate_rebase_callbacks(git_rebase_options *opts) { - opts->signing_cb = commit_signing_callback; + opts->commit_create_cb = commit_create_callback; } void _go_git_populate_clone_callbacks(git_clone_options *opts) |
