Function cargo::sources::path::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.