Open a new git repository instance (for thread-local use).
(&self)
| 2165 | |
| 2166 | /// Open a new git repository instance (for thread-local use). |
| 2167 | fn open_git_repo(&self) -> CliResult<GitRepository> { |
| 2168 | GitRepository::open(&self.git_repo_path).map_err(|e| CliError::GitError { |
| 2169 | message: format!("Failed to open git repository: {}", e), |
| 2170 | }) |
| 2171 | } |
| 2172 | |
| 2173 | fn path_ignored_for_import(&self, path: &str) -> bool { |
| 2174 | !self.ignore_matcher.is_empty() && self.ignore_matcher.matches(path) |