pub fn get_head_commit() -> Option<String>
Return the current HEAD commit hash, or None if not in a git repo.