pub fn discover(path: &Path) -> Result<PathBuf, RepoError>
The worktree root of the repository containing path. A .jj with no .git above it is a jj repo, whose root we return.
path
.jj
.git