The struct version
Set progress and error callbacks
Set custom headers for HTTP requests
Connect the transport to the remote repository, using the given direction.
Get the list of available references in the remote repository.
This function may be called after a successful call to connect()
. The array returned is owned by the transport and must be kept valid until the next call to one of its functions.
Executes the push whose context is in the git_push object.
Negotiate a fetch with the remote repository.
This function may be called after a successful call to connect()
, when the direction is GIT_DIRECTION_FETCH. The function performs a negotiation to calculate the wants
list for the fetch.
Start downloading the packfile from the remote repository.
This function may be called after a successful call to negotiate_fetch(), when the direction is GIT_DIRECTION_FETCH.
Checks to see if the transport is connected
Reads the flags value previously passed into connect()
Cancels any outstanding transport operation
Close the connection to the remote repository.
This function is the reverse of connect() -- it terminates the connection to the remote end.
Frees/destructs the git_transport object.