pub fn head_commit(root: &Path) -> Result<String>Expand description
Resolve the HEAD of the repo at root to its commit SHA (hex). This is the
value to record as the base after a successful index, so the next run can diff
against it incrementally.