summaryrefslogtreecommitdiff
path: root/wrapper.c
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-03 06:40:31 -0700
committerlhchavez <[email protected]>2021-09-05 18:52:01 -0700
commit018647fd481a7eb4af97d5f61afc0fddfe76fc24 (patch)
tree06f4af28f0298ffe4bd93d2061f7eb8c52518bc2 /wrapper.c
parentb78bde3d74b1617d5b635723552aaec0583eb054 (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.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/wrapper.c b/wrapper.c
index 6f65f71..e999136 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -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)