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

Method changed_paths

atomic-cli/src/commands/git/parallel.rs:1170–1184  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1168 }
1169
1170 pub(crate) fn changed_paths(&self) -> Vec<PathBuf> {
1171 if let Some(stream) = &self.stream {
1172 return stream.changed_paths.clone();
1173 }
1174 let mut paths = std::collections::BTreeSet::new();
1175 for commit in &self.commits {
1176 for file in &commit.parsed.files {
1177 paths.insert(PathBuf::from(&file.path));
1178 if let Some(old_path) = &file.old_path {
1179 paths.insert(PathBuf::from(old_path));
1180 }
1181 }
1182 }
1183 paths.into_iter().collect()
1184 }
1185}
1186
1187/// Fold the Git tree `tree_oid` into the tree OID the prospective gate must

Callers 1

run_importMethod · 0.80

Calls 4

cloneMethod · 0.45
insertMethod · 0.45
collectMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected