diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-21 20:16:48 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 09:46:35 +0200 |
| commit | 05259114427234831cf4915cbe40a5bb8ea021b0 (patch) | |
| tree | 127d7d88b7789954544bb78981058fa35e1de54d /src/push.h | |
| parent | f85a9c2767b43f35904bf39858488a4b7bc304e8 (diff) | |
| download | libgit2-05259114427234831cf4915cbe40a5bb8ea021b0.tar.gz | |
push: remove own copy of callbacks
The push object knows which remote it's associated with, and therefore
does not need to keep its own copy of the callbacks stored in the
remote.
Remove the copy and simply access the callbacks struct within the
remote.
Diffstat (limited to 'src/push.h')
| -rw-r--r-- | src/push.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/push.h b/src/push.h index fb5f01480..fcba45c8e 100644 --- a/src/push.h +++ b/src/push.h @@ -38,13 +38,6 @@ struct git_push { /* options */ unsigned pb_parallelism; - - git_packbuilder_progress pack_progress_cb; - void *pack_progress_cb_payload; - git_push_transfer_progress transfer_progress_cb; - void *transfer_progress_cb_payload; - git_push_negotiation negotiation_cb; - void *negotiation_cb_payload; }; /** @@ -77,31 +70,6 @@ int git_push_set_options( const git_push_options *opts); /** - * Set the callbacks for a push - * - * @param push The push object - * @param pack_progress_cb Function to call with progress information during - * pack building. Be aware that this is called inline with pack building - * operations, so performance may be affected. - * @param pack_progress_cb_payload Payload for the pack progress callback. - * @param transfer_progress_cb Function to call with progress information during - * the upload portion of a push. Be aware that this is called inline with - * pack building operations, so performance may be affected. - * @param transfer_progress_cb_payload Payload for the network progress callback. - * @param push_negotiation_cb Function to call before sending the commands to the remote. - * @param push_negotiation_cb_payload Payload for the negotiation callback - * @return 0 or an error code - */ -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, - git_push_negotiation negotiation_cb, - void *negotiation_cb_payload); - -/** * Add a refspec to be pushed * * @param push The push object |
