(repo_root: &Path, repo: &Repository, view: &str)
| 908 | } |
| 909 | |
| 910 | fn 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 |
no test coverage detected