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

Function forensic_manifest_root

atomic-cli/src/commands/status.rs:910–919  ·  view source on GitHub ↗
(repo_root: &Path, repo: &Repository, view: &str)

Source from the content-addressed store, hash-verified

908}
909
910fn forensic_manifest_root(repo_root: &Path, repo: &Repository, view: &str) -> Option<String> {
911 if !repo_root.join(".git").exists() {
912 return None;
913 }
914 let git_repo = git2::Repository::open(repo_root).ok()?;
915 let policy = crate::commands::git::parallel::conversion_policy(&git_repo).ok()?;
916 let project = repo.project_tree(view, &policy).ok()?;
917 let root = project.manifest.root();
918 Some(format!("v{} {}", root.version, root.content_key))
919}
920
921/// Report observed drift between the checkpoint and current state as plain
922/// observations. No stale-baseline classification is made: index movement is

Callers 1

print_forensic_statusFunction · 0.85

Calls 6

openFunction · 0.85
conversion_policyFunction · 0.85
project_treeMethod · 0.80
existsMethod · 0.45
okMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected