diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-01-04 17:05:11 +0000 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-01-04 17:05:11 +0000 |
| commit | d57246fb74404ed8b18d0d26d2b02b326ffd2cbe (patch) | |
| tree | 10a2ee2916f886a7324b21e8401b02749a6ff365 /wrapper.c | |
| parent | dff9badc05f5fd98e8f6d002e1537c7ee3ef634f (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.c | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -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); |
