A Git Client that works over TCP directly (i.e. git://).
Method __init__ Create a new GitClient instance.
Class Method from_parsedurl Create an instance of this client from a urlparse.parsed object.
Method get_url Retrieves full url to given path.
Method _connect Create a connection to the server.

Inherited from GitClient (via TraditionalGitClient):

Method fetch Fetch into a target repository.
Method _parse_status_report Undocumented
Method _read_side_band64k_data Read per-channel data.
Method _handle_receive_pack_head Handle the head of a 'git-receive-pack' request.
Method _negotiate_receive_pack_capabilities Undocumented
Method _handle_receive_pack_tail Handle the tail of a 'git-receive-pack' request.
Method _negotiate_upload_pack_capabilities Undocumented
Method _handle_upload_pack_head Handle the head of a 'git-upload-pack' request.
Method _handle_upload_pack_tail Handle the tail of a 'git-upload-pack' request.

Inherited from GitClient (via TraditionalGitClient):

Method fetch Fetch into a target repository.
Method _parse_status_report Undocumented
Method _read_side_band64k_data Read per-channel data.
Method _handle_receive_pack_head Handle the head of a 'git-receive-pack' request.
Method _negotiate_receive_pack_capabilities Undocumented
Method _handle_receive_pack_tail Handle the tail of a 'git-receive-pack' request.
Method _negotiate_upload_pack_capabilities Undocumented
Method _handle_upload_pack_head Handle the head of a 'git-upload-pack' request.
Method _handle_upload_pack_tail Handle the tail of a 'git-upload-pack' request.
def __init__(self, host, port=None, **kwargs):
Create a new GitClient instance.
Parametersthin_packsWhether or not thin packs should be retrieved
report_activityOptional callback for reporting transport activity.
@classmethod
def from_parsedurl(cls, parsedurl, **kwargs):
Create an instance of this client from a urlparse.parsed object.
ParametersparsedurlResult of urlparse.urlparse()
ReturnsA GitClient object
def get_url(self, path):
Retrieves full url to given path.
ParameterspathRepository path (as string)
ReturnsUrl to path (as string)
def _connect(self, cmd, path):

Create a connection to the server.

This method is abstract - concrete implementations should implement their own variant which connects to the server and returns an initialized Protocol object with the service ready for use and a can_read function which may be used to see if reads would block.

ParameterscmdThe git service name to which we should connect.
pathThe path we should pass to the service. (as bytestirng)
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.