(root: &DataRoot, repo_id: RepoId)
| 37 | |
| 38 | impl Repo { |
| 39 | pub fn ensure(root: &DataRoot, repo_id: RepoId) -> Result<Self> { |
| 40 | let path = root.repo_path(repo_id); |
| 41 | Self::open(path) |
| 42 | } |
| 43 | |
| 44 | pub fn open(path: PathBuf) -> Result<Self> { |
| 45 | match git2::Repository::open(&path) { |
nothing calls this directly
no test coverage detected