Collect all untracked files in the repository.
(&self, repo: &Repository)
| 258 | |
| 259 | /// Collect all untracked files in the repository. |
| 260 | fn collect_untracked_files(&self, repo: &Repository) -> CliResult<Vec<PathBuf>> { |
| 261 | let status = repo |
| 262 | .status(StatusOptions::default()) |
| 263 | .map_err(|e| CliError::Internal(e.into()))?; |
| 264 | |
| 265 | Ok(status.untracked().map(|e| e.path().to_path_buf()).collect()) |
| 266 | } |
| 267 | |
| 268 | /// Add a single path to tracking. |
| 269 | fn add_path( |