Get a human-readable description of this reference.
(&self)
| 154 | |
| 155 | /// Get a human-readable description of this reference. |
| 156 | pub fn description(&self) -> String { |
| 157 | match self { |
| 158 | Self::Last => "@".to_string(), |
| 159 | Self::Relative(n) => format!("@~{}", n), |
| 160 | Self::Hash(h) => h.clone(), |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | // Revise Command |