(root: &Path, spec: &str)
| 57 | } |
| 58 | |
| 59 | fn git_object(root: &Path, spec: &str) -> Option<Vec<u8>> { |
| 60 | let output = git(root, &["show", spec]); |
| 61 | output.status.success().then_some(output.stdout) |
| 62 | } |
| 63 | |
| 64 | fn parse_forensic_digest(output: &[u8]) -> String { |
| 65 | let text = String::from_utf8_lossy(output); |