(tree: &super::ProjectTree)
| 74 | } |
| 75 | |
| 76 | fn 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 | |
| 100 | fn changed_paths( |
| 101 | before: &BTreeMap<Vec<u8>, FileContent>, |
no test coverage detected