Get a human-readable description of this status.
(&self)
| 697 | |
| 698 | /// Get a human-readable description of this status. |
| 699 | pub fn description(&self) -> &'static str { |
| 700 | match self { |
| 701 | FileChangeStatus::Added => "added", |
| 702 | FileChangeStatus::Deleted => "deleted", |
| 703 | FileChangeStatus::Modified => "modified", |
| 704 | FileChangeStatus::Renamed => "renamed", |
| 705 | FileChangeStatus::Copied => "copied", |
| 706 | FileChangeStatus::TypeChanged => "type changed", |
| 707 | FileChangeStatus::Untracked => "untracked", |
| 708 | } |
| 709 | } |
| 710 | } |
| 711 | |
| 712 | impl fmt::Display for FileChangeStatus { |
no outgoing calls