Function cargo::sources::path::discover_git_repo
source ยท fn discover_git_repo(root: &Path) -> CargoResult<Option<Repository>>
Expand description
Returns Some(git2::Repository)
if found sibling Cargo.toml
and .git
directory; otherwise, caller should fall back on full file list.