diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-10-15 15:43:02 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-10-15 15:56:59 +0200 |
| commit | 17a9214307250b5fd2769385c73b723d55a26dab (patch) | |
| tree | 474e1f510abd0e1a93d3e7e227219db301c382c2 /wrapper.c | |
| parent | 5eda8d6935d6d2b0db9bf3264832e575701696ff (diff) | |
Update to libgit2 master
The option to ignore the server's certificate has been removed, replaced
witha callback for the user to perform their own checking.
Remote.Fetch() now performs opportunistic updates and takes a list of
refspecs to use as the active set for a particular fetch.
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -70,14 +70,13 @@ void _go_git_setup_diff_notify_callbacks(git_diff_options *opts) { void _go_git_setup_callbacks(git_remote_callbacks *callbacks) { typedef int (*completion_cb)(git_remote_completion_type type, void *data); - typedef int (*credentials_cb)(git_cred **cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *data); - typedef int (*transfer_progress_cb)(const git_transfer_progress *stats, void *data); typedef int (*update_tips_cb)(const char *refname, const git_oid *a, const git_oid *b, void *data); callbacks->sideband_progress = (git_transport_message_cb)sidebandProgressCallback; callbacks->completion = (completion_cb)completionCallback; - callbacks->credentials = (credentials_cb)credentialsCallback; - callbacks->transfer_progress = (transfer_progress_cb)transferProgressCallback; + callbacks->credentials = (git_cred_acquire_cb)credentialsCallback; + callbacks->transfer_progress = (git_transfer_progress_cb)transferProgressCallback; callbacks->update_tips = (update_tips_cb)updateTipsCallback; + callbacks->certificate_check = (git_transport_certificate_check_cb) certificateCheckCallback; } typedef int (*status_foreach_cb)(const char *ref, const char *msg, void *data); |
