Open a new git repository instance (for thread-local use).
(&self)
| 2173 | |
| 2174 | /// Open a new git repository instance (for thread-local use). |
| 2175 | fn open_git_repo(&self) -> CliResult<GitRepository> { |
| 2176 | GitRepository::open(&self.git_repo_path).map_err(|e| CliError::GitError { |
| 2177 | message: format!("Failed to open git repository: {}", e), |
| 2178 | }) |
| 2179 | } |
| 2180 | |
| 2181 | fn path_ignored_for_import(&self, path: &str) -> bool { |
| 2182 | !self.ignore_matcher.is_empty() && self.ignore_matcher.matches(path) |