pub fn git_sha(root: &Path) -> Result<String>Expand description
2026-09-26: The short commit id of HEAD (--short=10), or the trimmed value of
METRALE_GATE_SHA when that is set, for a checkout without git metadata.
ยงErrors
If METRALE_GATE_SHA is set but empty, or git fails or prints nothing.