cargo::sources::path

Function discover_gix_repo

Source
fn discover_gix_repo(root: &Path) -> CargoResult<Option<Repository>>
Expand description

Returns Some(gix::Repository) if the discovered repository (searched upwards from root) contains a tracked <root>/Cargo.toml. Otherwise, the caller should fall back on full file list.