From d57246fb74404ed8b18d0d26d2b02b326ffd2cbe Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Sun, 4 Jan 2015 17:05:11 +0000 Subject: Update to libgit2 master This gets rid of the Push object. All network now goes through the Remote object. --- wrapper.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'wrapper.c') diff --git a/wrapper.c b/wrapper.c index 3779653..938fd17 100644 --- a/wrapper.c +++ b/wrapper.c @@ -1,9 +1,7 @@ #include "_cgo_export.h" -#include "git2.h" -#include "git2/sys/odb_backend.h" -#include "git2/sys/refdb_backend.h" -#include "git2/submodule.h" -#include "git2/pack.h" +#include +#include +#include typedef int (*gogit_submodule_cbk)(git_submodule *sm, const char *name, void *payload); @@ -84,18 +82,6 @@ void _go_git_setup_callbacks(git_remote_callbacks *callbacks) { callbacks->push_update_reference = (push_update_reference_cb) pushUpdateReferenceCallback; } -typedef int (*status_foreach_cb)(const char *ref, const char *msg, void *data); - -int _go_git_push_status_foreach(git_push *push, void *data) -{ - return git_push_status_foreach(push, (status_foreach_cb)statusForeach, data); -} - -int _go_git_push_set_callbacks(git_push *push, void *packbuilder_progress_data, void *transfer_progress_data) -{ - return git_push_set_callbacks(push, packbuilderProgress, packbuilder_progress_data, pushStructTransferProgress, transfer_progress_data); -} - int _go_blob_chunk_cb(char *buffer, size_t maxLen, void *payload) { return blobChunkCb(buffer, maxLen, payload); -- cgit v1.2.3