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

Function touched_paths

atomic-cli/src/commands/git/parallel.rs:469–478  ·  view source on GitHub ↗

Every path a single-parent commit touches: added, modified, deleted, renamed and copied paths, plus each rename's source.

(parsed: &ParsedCommit)

Source from the content-addressed store, hash-verified

467/// Every path a single-parent commit touches: added, modified, deleted,
468/// renamed and copied paths, plus each rename's source.
469fn touched_paths(parsed: &ParsedCommit) -> std::collections::BTreeSet<String> {
470 let mut paths = std::collections::BTreeSet::new();
471 for file in &parsed.files {
472 paths.insert(file.path.clone());
473 if let Some(old_path) = &file.old_path {
474 paths.insert(old_path.clone());
475 }
476 }
477 paths
478}
479
480/// Lowercase hex of a tagged Git object ID (display/proof only).
481pub(crate) fn tagged_oid_hex(oid: &atomic_core::operation::GitObjectId) -> String {

Calls 2

insertMethod · 0.45
cloneMethod · 0.45