class SubprocessGitClient(TraditionalGitClient):
Constructors: SubprocessGitClient.from_parsedurl(parsedurl, thin_packs, report_activity, quiet, ...), SubprocessGitClient(path_encoding, thin_packs, report_activity, quiet, ...)
Git client that talks to a server using a subprocess.
| Class Method | from |
Create an instance of SubprocessGitClient from a parsed URL. |
| Class Variable | git |
Undocumented |
| Method | _connect |
Create a connection to the server. |
Inherited from TraditionalGitClient:
| Method | __init__ |
Initialize a TraditionalGitClient. |
| Method | archive |
Request an archive of a specific commit. |
| Method | fetch |
Retrieve a pack from a git smart server. |
| Method | get |
Retrieve the current refs from a git smart server. |
| Method | send |
Upload a pack to a remote repository. |
| Constant | DEFAULT |
Undocumented |
| Instance Variable | protocol |
Undocumented |
| Instance Variable | _remote |
Undocumented |
| Instance Variable | _report |
Undocumented |
Inherited from GitClient (via TraditionalGitClient):
| Method | clone |
Clone a repository. |
| Method | close |
Close the client and release any resources. |
| Method | fetch |
Fetch into a target repository. |
| Method | fetch |
Fetch into a target repository, using bundle URIs for bootstrap. |
| Method | get |
Retrieves full url to given path. |
| Static Method | _should |
Undocumented |
| Static Method | _warn |
Undocumented |
| Method | _handle |
Handle the tail of a 'git-receive-pack' request. |
| Method | _negotiate |
Undocumented |
| Method | _negotiate |
Undocumented |
| Instance Variable | _fetch |
Undocumented |
| Instance Variable | _report |
Undocumented |
| Instance Variable | _send |
Undocumented |
ParseResult, thin_packs: bool = True, report_activity: Callable[ [ int, str], None] | None = None, quiet: bool = False, include_tags: bool = False, dumb: bool = False, username: str | None = None, password: str | None = None, config: Config | None = None) -> SubprocessGitClient:
¶
dulwich.client.GitClient.from_parsedurlCreate an instance of SubprocessGitClient from a parsed URL.
| Parameters | |
parsedurl:ParseResult | Result of urlparse() |
thinbool | Whether or not thin packs should be retrieved |
reportCallable[ | Optional callback for reporting transport activity |
quiet:bool | Whether to suppress progress output |
includebool | Whether to include tags |
dumb:bool | Whether to use dumb protocol (not used for SubprocessGitClient) |
username:str | None | Username for authentication (not used for SubprocessGitClient) |
password:str | None | Password for authentication (not used for SubprocessGitClient) |
config:Config | None | Configuration object (not used for SubprocessGitClient) |
| Returns | |
SubprocessGitClient | A SubprocessGitClient instance |
bytes, path: bytes | str, protocol_version: int | None = None) -> tuple[ Protocol, Callable[ [], bool], IO[ bytes] | None]:
¶
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.
| Parameters | |
service:bytes | Undocumented |
path:bytes | str | The path we should pass to the service. (as bytestirng) |
protocolint | None | Desired Git protocol version. By default the highest mutually supported protocol version will be used. |
| cmd | The git service name to which we should connect. |
| Returns | |
tuple[ | Undocumented |