(path: &Path)
| 38 | } |
| 39 | |
| 40 | fn is_git_repo(path: &Path) -> bool { |
| 41 | path.join(".git").exists() || run_git(&["rev-parse", "--git-dir"], path).is_ok() |
| 42 | } |
| 43 | |
| 44 | pub fn list_worktrees(repo_path: &Path) -> Result<Vec<WorktreeInfo>, WorktreeError> { |
| 45 | if !is_git_repo(repo_path) { |
no test coverage detected