Resolve the fixed project-side git identity once.
(project_root: &Path)
| 143 | impl ProjectRootMatcher { |
| 144 | /// Resolve the fixed project-side git identity once. |
| 145 | pub(crate) fn new(project_root: &Path) -> Self { |
| 146 | Self { |
| 147 | root: project_root.to_path_buf(), |
| 148 | worktree: crate::worktree::git_worktree_root(project_root), |
| 149 | common_dir: crate::worktree::git_common_dir(project_root), |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /// True when `path` belongs to this project: it is the root, shares the |
| 154 | /// project's git worktree or common dir, or discovers back to the root. |
nothing calls this directly
no test coverage detected