Get a human-readable description of this status.
(&self)
| 686 | |
| 687 | /// Get a human-readable description of this status. |
| 688 | pub fn description(&self) -> &'static str { |
| 689 | match self { |
| 690 | FileChangeStatus::Added => "added", |
| 691 | FileChangeStatus::Deleted => "deleted", |
| 692 | FileChangeStatus::Modified => "modified", |
| 693 | FileChangeStatus::Renamed => "renamed", |
| 694 | FileChangeStatus::Copied => "copied", |
| 695 | FileChangeStatus::TypeChanged => "type changed", |
| 696 | FileChangeStatus::Untracked => "untracked", |
| 697 | } |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | impl fmt::Display for FileChangeStatus { |
no outgoing calls