git2-rs
git2-rs copied to clipboard
clone with --force arg
im trying to clone a repo by force into an existing one
let repo = Repository::clone(
package_template_repo_url,
clone_destination.clone(),
);
apparently there is no args method for builder pattern.
how can i specify arguments to clone method ?
such as:
force? does this exist ?--branch--depthand many more
You can use RepoBuilder to control the clone options (FetchOptions, CheckoutBuilder, etc.). libgit2 does not support shallow clones, though.
yeah. but that example is very minimal ...
thats all the documentation for that ? ...
That is the documentation available. Is there something that seems to be missing? The FetchOptions and CheckoutBuilder contains documentation for each option.
okey, i'll read the docs and come back later.