Function git_transport::connect[][src]

pub fn connect(
    url: &[u8],
    desired_version: Protocol
) -> Result<Box<dyn Transport>, Error>

A general purpose connector connecting to a repository identified by the given url.

This includes connections to local repositories, repositories over ssh, git daemons, and if compiled in connections to [git repositories over https][crate::client::http::connect()].

Use desired_version to set the desired protocol version to use when connecting, but not that the server may downgrade it.