Get only untracked files.
(
&self,
working_copy: WorkingCopyId,
)
| 1236 | |
| 1237 | /// Get only untracked files. |
| 1238 | pub fn untracked_files( |
| 1239 | &self, |
| 1240 | working_copy: WorkingCopyId, |
| 1241 | ) -> Result<Vec<PathBuf>, RepositoryError> { |
| 1242 | let status = self.status(working_copy, StatusOptions::default())?; |
| 1243 | Ok(status.untracked().map(|e| e.path().to_path_buf()).collect()) |
| 1244 | } |
| 1245 | |
| 1246 | /// Get only deleted files. |
| 1247 | pub fn deleted_files( |