pub fn connect(
    host: &str,
    path: BString,
    desired_version: Protocol,
    port: Option<u16>
) -> Result<Connection<TcpStream, TcpStream>, Error>
Expand description

Connect to a git daemon running on host and optionally port and a repository at path.

Use desired_version to specify a preferred protocol to use, knowing that it can be downgraded by a server not supporting it.