pub fn get_head_commit_in(cwd: &Path) -> Result<String>
Path-taking sibling of get_head_commit.
get_head_commit