Function gix::prepare_clone
source · pub fn prepare_clone<Url, E>(
url: Url,
path: impl AsRef<Path>
) -> Result<PrepareFetch, Error>
Expand description
Create a platform for configuring a clone with main working tree from url
to the local path
, using default options for opening it
(but amended with using configuration from the git installation to ensure all authentication options are honored).
See clone::PrepareFetch::new()
for a function to take full control over all options.