Finds the worktree root from `--repo` or current directory. Returns `None` if the path is a normal repository (not a worktree).
(&self)
| 100 | /// Finds the worktree root from `--repo` or current directory. |
| 101 | /// Returns `None` if the path is a normal repository (not a worktree). |
| 102 | pub fn resolve_worktree_source(&self) -> Result<Option<PathBuf>, Box<dyn Error>> { |
| 103 | let start_path = self.repo.as_deref().unwrap_or("."); |
| 104 | find_worktree_root(Path::new(start_path)) |
| 105 | } |
| 106 | |
| 107 | /// Creates and configures a TaskBuilder with all shared fields. |
| 108 | /// |
no test coverage detected