discover

Function discover 

Source
pub fn discover(path: &Path) -> Result<Repository>
Expand description

Discover the Git repository containing path by walking parent directories upward until a repo root is found.

ยงErrors

  • If the path is not inside a Git repository.