Check if a file status represents a recordable change. Recordable statuses are changes that can be included in a `record` operation. Clean, untracked, and conflicted files are not directly recordable.
(status: FileStatus)
| 1372 | /// Recordable statuses are changes that can be included in a `record` operation. |
| 1373 | /// Clean, untracked, and conflicted files are not directly recordable. |
| 1374 | pub fn is_recordable(status: FileStatus) -> bool { |
| 1375 | matches!( |
| 1376 | status, |
| 1377 | FileStatus::Modified |
| 1378 | | FileStatus::Added |
| 1379 | | FileStatus::Deleted |
| 1380 | | FileStatus::PendingUntrack |
| 1381 | | FileStatus::TypeChanged |
| 1382 | | FileStatus::PermissionsChanged |
| 1383 | ) |
| 1384 | } |
| 1385 | |
| 1386 | // Tests |
| 1387 |
nothing calls this directly
no outgoing calls
no test coverage detected