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

Method fmt

atomic-core/src/pristine/ref_mapping.rs:70–79  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

68
69impl std::fmt::Display for RefSyncStatus {
70 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
71 let name = match self {
72 Self::Synchronized => "synchronized",
73 Self::GitAhead => "git-ahead",
74 Self::AtomicAhead => "atomic-ahead",
75 Self::Diverged => "diverged",
76 Self::Unrepresentable => "unrepresentable",
77 };
78 f.write_str(name)
79 }
80}
81
82/// One persistent view ↔ Git ref mapping (RFC §8.1).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected