Skip to main content

discover

Function discover 

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

Discover the repository containing path and return its working directory root. A .jj directory with no colocated .git is a distinct, more actionable failure than a plain “not a repository”: we found a jj repo but no git one.