Every path a single-parent commit touches: added, modified, deleted, renamed and copied paths, plus each rename's source.
(parsed: &ParsedCommit)
| 467 | /// Every path a single-parent commit touches: added, modified, deleted, |
| 468 | /// renamed and copied paths, plus each rename's source. |
| 469 | fn 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). |
| 481 | pub(crate) fn tagged_oid_hex(oid: &atomic_core::operation::GitObjectId) -> String { |