Git wire protocol + transport (gix-protocol + gix-transport)
Dependencies
pub(all) enum FilterSpec {
NoFilter
BlobNone
BlobLimit(Int64)
TreeDepth(Int)
SparseOid(String)
SparsePathUnsupported
}fn PushRequest::new(old_id : ObjectId, new_id : ObjectId, refname : String, packfile : Bytes) -> PushRequestpub struct Remote {
url : String
}pub struct RemoteSpec {
kind : RemoteKind
raw : String
host : String?
path : String
base_url : String?
}async fn[FS : AsyncFileSystem + AsyncRepoFileSystem, Client : AsyncHttpClient] clone_to_async_fs_with_http(remote : String, prefer_v2 : Bool, depth : Int, filter : FilterSpec, fs : FS, root : String, client : Client, no_checkout? : Bool) -> Array[(ObjectId, String)] raise GitErrorasync fn clone_to_fs_with_http(remote : String, prefer_v2 : Bool, depth : Int, filter : FilterSpec, fs : &FileSystem, root : String, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, rfs : &RepoFileSystem, no_checkout? : Bool) -> Array[(ObjectId, String)] raise GitErrorasync fn clone_with_http(remote : String, prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> (Array[(ObjectId, String)], Array[PackObject]) raise GitErrorasync fn discover_upload_refs_with_http(remote : String, prefer_v2 : Bool, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> (Array[(ObjectId, String)], Array[String], ProtocolVersion, Map[String, String]) raise GitErrorasync fn fetch_objects_with_http(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> Array[PackObject] raise GitErrorasync fn fetch_pack_with_http(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> Bytes raise GitErrorasync fn fetch_pack_with_http_result(remote : String, wants : Array[ObjectId], prefer_v2 : Bool, depth : Int, filter : FilterSpec, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, haves? : Array[ObjectId], shallow? : Array[ObjectId]) -> FetchPackResult raise GitErrorfn pktline_encode(data : String) -> Bytesasync fn push_with_http(remote : Remote, req : PushRequest, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> String raise GitErrorfn sanitize_sideband_text(data : Bytes) -> Bytesfn ssh_remote_to_https(remote : String) -> String?async fn upload_pack_info_refs_with_http(remote : String, prefer_v2 : Bool, http_get : async (String, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> Bytes raise GitErrorasync fn upload_pack_request_with_http(remote : String, body : Bytes, prefer_v2 : Bool, http_post : async (String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise GitError) -> Bytes raise GitErrorGit wire protocol + transport (gix-protocol + gix-transport)
Dependencies