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

Function files

atomic-repository/src/repository/native_review.rs:76–98  ·  view source on GitHub ↗
(tree: &super::ProjectTree)

Source from the content-addressed store, hash-verified

74}
75
76fn files(tree: &super::ProjectTree) -> BTreeMap<Vec<u8>, FileContent> {
77 tree.manifest
78 .entries
79 .iter()
80 .filter(|entry| {
81 !entry
82 .path
83 .as_bytes()
84 .split(|b| *b == b'/')
85 .any(|part| part == b".vault")
86 })
87 .map(|entry| {
88 (
89 entry.path.as_bytes().to_vec(),
90 FileContent {
91 kind: entry.kind.as_byte(),
92 mode: entry.mode,
93 hash: entry.content_identity.to_string(),
94 },
95 )
96 })
97 .collect()
98}
99
100fn changed_paths(
101 before: &BTreeMap<Vec<u8>, FileContent>,

Callers 3

matches_sourceMethod · 0.70

Calls 4

as_byteMethod · 0.80
collectMethod · 0.45
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected