Check if this status represents a change that needs to be recorded. Returns `true` for statuses that indicate uncommitted changes.
(&self)
| 183 | /// |
| 184 | /// Returns `true` for statuses that indicate uncommitted changes. |
| 185 | pub fn is_dirty(&self) -> bool { |
| 186 | matches!( |
| 187 | self, |
| 188 | FileStatus::Modified |
| 189 | | FileStatus::Deleted |
| 190 | | FileStatus::Added |
| 191 | | FileStatus::TypeChanged |
| 192 | | FileStatus::PermissionsChanged |
| 193 | ) |
| 194 | } |
| 195 | |
| 196 | /// Check if this status represents an untracked file. |
| 197 | pub fn is_untracked(&self) -> bool { |
no outgoing calls