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

Function status_shape

atomic-repository/src/repository/status.rs:1461–1469  ·  view source on GitHub ↗
(status: &RepositoryStatus)

Source from the content-addressed store, hash-verified

1459 }
1460
1461 fn status_shape(status: &RepositoryStatus) -> Vec<(PathBuf, FileStatus)> {
1462 let mut entries: Vec<_> = status
1463 .entries()
1464 .iter()
1465 .map(|entry| (entry.path().to_path_buf(), entry.status()))
1466 .collect();
1467 entries.sort_by(|left, right| left.0.cmp(&right.0));
1468 entries
1469 }
1470
1471 fn selected(
1472 mode: GitWatch,

Calls 6

entriesMethod · 0.80
collectMethod · 0.45
iterMethod · 0.45
pathMethod · 0.45
statusMethod · 0.45
cmpMethod · 0.45