Get only modified files.
(
&self,
working_copy: WorkingCopyId,
)
| 1227 | |
| 1228 | /// Get only modified files. |
| 1229 | pub fn modified_files( |
| 1230 | &self, |
| 1231 | working_copy: WorkingCopyId, |
| 1232 | ) -> Result<Vec<PathBuf>, RepositoryError> { |
| 1233 | let status = self.status(working_copy, StatusOptions::default())?; |
| 1234 | Ok(status.modified().map(|e| e.path().to_path_buf()).collect()) |
| 1235 | } |
| 1236 | |
| 1237 | /// Get only untracked files. |
| 1238 | pub fn untracked_files( |