module deimos.git2.push; import deimos.git2.common; import deimos.git2.pack; import deimos.git2.types; extern (C): struct git_push_options { uint version_ = GIT_PUSH_OPTIONS_VERSION; uint pb_parallelism; } enum GIT_PUSH_OPTIONS_VERSION = 1; enum git_push_options GIT_PUSH_OPTIONS_INIT = { GIT_PUSH_OPTIONS_VERSION }; alias git_push_transfer_progress = int function( uint current, uint total, size_t bytes, void* payload); int git_push_new(git_push **out_, git_remote *remote); int git_push_set_options( git_push *push, const(git_push_options)* opts); int git_push_set_callbacks( git_push *push, git_packbuilder_progress pack_progress_cb, void *pack_progress_cb_payload, git_push_transfer_progress transfer_progress_cb, void *transfer_progress_cb_payload); int git_push_add_refspec(git_push *push, const(char)* refspec); int git_push_update_tips(git_push *push); int git_push_finish(git_push *push); int git_push_unpack_ok(git_push *push); int git_push_status_foreach( git_push *push, int function(const(char)* ref_, const(char)* msg, void *data) cb, void *data); void git_push_free(git_push *push);