The wire's downcased file status for a diff chunk — the CLI renders name-status and /dev/null headers from this.
(status: DomainFileStatus)
| 208 | /// The wire's downcased file status for a diff chunk — the CLI renders |
| 209 | /// name-status and /dev/null headers from this. |
| 210 | fn diff_status_string(status: DomainFileStatus) -> String { |
| 211 | match status { |
| 212 | DomainFileStatus::Added => "added", |
| 213 | DomainFileStatus::Deleted => "deleted", |
| 214 | DomainFileStatus::Modified => "modified", |
| 215 | DomainFileStatus::Untracked => "untracked", |
| 216 | other => return format!("{other:?}").to_lowercase(), |
| 217 | } |
| 218 | .to_string() |
| 219 | } |
| 220 | |
| 221 | // --------------------------------------------------------------------------- |
| 222 | // GetChange — `atomic change <HASH|#N>` |
no outgoing calls
no test coverage detected