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

Method from

atomic-cli/src/commands/status.rs:622–629  ·  view source on GitHub ↗
(entry: &atomic_repository::status::FileStatusEntry)

Source from the content-addressed store, hash-verified

620
621impl From<&atomic_repository::status::FileStatusEntry> for JsonStatusEntry {
622 fn from(entry: &atomic_repository::status::FileStatusEntry) -> Self {
623 Self {
624 path: json_path(entry.path()),
625 status: json_status_name(entry.status()),
626 code: entry.status().short_code().to_string(),
627 details: entry.details().map(str::to_string),
628 }
629 }
630}
631
632fn json_path(path: &std::path::Path) -> String {

Callers

nothing calls this directly

Calls 6

json_pathFunction · 0.85
json_status_nameFunction · 0.85
detailsMethod · 0.80
pathMethod · 0.45
statusMethod · 0.45
short_codeMethod · 0.45

Tested by

no test coverage detected