Get a human-readable description of this status.
(&self)
| 247 | |
| 248 | /// Get a human-readable description of this status. |
| 249 | pub fn description(&self) -> &'static str { |
| 250 | match self { |
| 251 | FileStatus::Clean => "unchanged", |
| 252 | FileStatus::Modified => "modified", |
| 253 | FileStatus::Deleted => "deleted", |
| 254 | FileStatus::Untracked => "untracked", |
| 255 | FileStatus::Added => "added", |
| 256 | FileStatus::PendingUntrack => "untrack pending", |
| 257 | FileStatus::Conflicted => "conflicted", |
| 258 | FileStatus::TypeChanged => "type changed", |
| 259 | FileStatus::PermissionsChanged => "permissions changed", |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | impl std::fmt::Display for FileStatus { |