Get the status character for this change type.
(&self)
| 696 | impl FileChangeStatus { |
| 697 | /// Get the status character for this change type. |
| 698 | pub fn status_char(&self) -> char { |
| 699 | match self { |
| 700 | FileChangeStatus::Added => 'A', |
| 701 | FileChangeStatus::Deleted => 'D', |
| 702 | FileChangeStatus::Modified => 'M', |
| 703 | FileChangeStatus::Renamed => 'R', |
| 704 | FileChangeStatus::Copied => 'C', |
| 705 | FileChangeStatus::TypeChanged => 'T', |
| 706 | FileChangeStatus::Untracked => 'U', |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | /// Get a human-readable description of this status. |
| 711 | pub fn description(&self) -> &'static str { |
nothing calls this directly
no outgoing calls
no test coverage detected