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

Method verify_changed_worktree_paths

atomic-cli/src/commands/git/parallel.rs:4444–4461  ·  view source on GitHub ↗
(
        &self,
        prospective: &ProjectTree,
        commits: &[VerifiedImportCommit],
        branch_name: &str,
        git: &GitRepository,
    )

Source from the content-addressed store, hash-verified

4442 }
4443
4444 fn verify_changed_worktree_paths(
4445 &self,
4446 prospective: &ProjectTree,
4447 commits: &[VerifiedImportCommit],
4448 branch_name: &str,
4449 git: &GitRepository,
4450 ) -> CliResult<()> {
4451 let mut changed = std::collections::BTreeSet::new();
4452 for commit in commits {
4453 for file in &commit.parsed.files {
4454 changed.insert(file.path.as_str());
4455 if let Some(old_path) = file.old_path.as_deref() {
4456 changed.insert(old_path);
4457 }
4458 }
4459 }
4460 self.verify_worktree_path_set(prospective, changed, branch_name, git)
4461 }
4462
4463 fn verify_worktree_path_set<'a>(
4464 &self,

Calls 3

insertMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected