git_remote_callbacks

The callback settings structure

Set the callbacks to be called by the remote when informing the user about the progress of the network operations.

Members

Variables

certificate_check
libgit2_d.cert.git_transport_certificate_check_cb certificate_check;

If cert verification fails, this will be called to let the user make the final decision of whether to allow the connection to proceed. Returns 0 to allow the connection or a negative value to indicate an error.

completion
int function(.git_remote_completion_t type, void* data) completion;

Completion is called when different parts of the download process are done (currently unused).

credentials
libgit2_d.credential.git_credential_acquire_cb credentials;

This will be called if the remote host requires authentication in order to connect to it.

pack_progress
libgit2_d.pack.git_packbuilder_progress pack_progress;

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.

payload
void* payload;

This will be passed to each of the callbacks in this struct as the last parameter.

push_negotiation
.git_push_negotiation push_negotiation;

Called once between the negotiation step and the upload. It provides information about what updates will be performed.

push_transfer_progress
.git_push_transfer_progress_cb push_transfer_progress;

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.

push_update_reference
.git_push_update_reference_cb push_update_reference;

See documentation of git_push_update_reference_cb

resolve_url
.git_url_resolve_cb resolve_url;

Resolve URL before connecting to remote. The returned URL will be used to connect to the remote instead.

sideband_progress
libgit2_d.transport.git_transport_message_cb sideband_progress;

Textual progress from the remote. Text send over the progress side-band will be passed to this function (this is the 'counting objects' output).

transfer_progress
libgit2_d.indexer.git_indexer_progress_cb transfer_progress;

During the download of new data, this will be regularly called with the current count of progress done by the indexer.

transport
libgit2_d.transport.git_transport_cb transport;

Create the transport to use for this operation. Leave null to auto-detect.

update_tips
int function(const(char)* refname, const(libgit2_d.oid.git_oid)* a, const(libgit2_d.oid.git_oid)* b, void* data) update_tips;

Each time a reference is updated locally, this function will be called with information about it.

version_
uint version_;

The version

Meta