pub fn head_rev(repo_path: &Path) -> Result<String, String>
Get the full commit hash of HEAD (equivalent to git rev-parse HEAD).
git rev-parse HEAD