Check if this status represents a change that needs to be recorded. Returns `true` for statuses that indicate uncommitted changes.
(&self)
| 194 | /// |
| 195 | /// Returns `true` for statuses that indicate uncommitted changes. |
| 196 | pub fn is_dirty(&self) -> bool { |
| 197 | matches!( |
| 198 | self, |
| 199 | FileStatus::Modified |
| 200 | | FileStatus::Deleted |
| 201 | | FileStatus::Added |
| 202 | | FileStatus::TypeChanged |
| 203 | | FileStatus::PermissionsChanged |
| 204 | ) |
| 205 | } |
| 206 | |
| 207 | /// Check if this status represents an untracked file. |
| 208 | pub fn is_untracked(&self) -> bool { |
no outgoing calls