MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / diff_status_string

Function diff_status_string

libatomic/src/daemon/services_query.rs:210–219  ·  view source on GitHub ↗

The wire's downcased file status for a diff chunk — the CLI renders name-status and /dev/null headers from this.

(status: DomainFileStatus)

Source from the content-addressed store, hash-verified

208/// The wire's downcased file status for a diff chunk — the CLI renders
209/// name-status and /dev/null headers from this.
210fn 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>`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected