The single-character glyph used by `status --git` two-column output.
(self)
| 59 | impl StageCode { |
| 60 | /// The single-character glyph used by `status --git` two-column output. |
| 61 | pub fn glyph(self) -> char { |
| 62 | match self { |
| 63 | Self::Unmodified => ' ', |
| 64 | Self::Modified => 'M', |
| 65 | Self::Added => 'A', |
| 66 | Self::Deleted => 'D', |
| 67 | Self::TypeChanged => 'T', |
| 68 | Self::Unmerged => 'U', |
| 69 | Self::Untracked => '?', |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /// One path's relation across the five layers. |