pub fn detect_git_sha(dir: &Path) -> Option<String>Expand description
Best-effort short git SHA of dir’s HEAD, for session provenance. None
outside a git work tree or when git is absent. Impure — stamped at startup
alongside detect_git_branch, never in the reducer.