summaryrefslogtreecommitdiff
path: root/wrapper.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-01-04 17:05:11 +0000
committerCarlos Martín Nieto <[email protected]>2015-01-04 17:05:11 +0000
commitd57246fb74404ed8b18d0d26d2b02b326ffd2cbe (patch)
tree10a2ee2916f886a7324b21e8401b02749a6ff365 /wrapper.c
parentdff9badc05f5fd98e8f6d002e1537c7ee3ef634f (diff)
Update to libgit2 master
This gets rid of the Push object. All network now goes through the Remote object.
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c20
1 files changed, 3 insertions, 17 deletions
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 <git2.h>
+#include <git2/sys/odb_backend.h>
+#include <git2/sys/refdb_backend.h>
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);