pub fn head_commit_hash_in(repo: &Path) -> Result<String>Expand description
git -C <repo> rev-parse HEAD — return HEAD’s full commit hash for the
given repository (or worktree). Path-taking sibling of
get_head_commit so callers (the determinism harness, future CI
glue) can resolve HEAD without cd-ing into the repo first.