pub fn git_diff(root: &Path, range: Option<&str>) -> Result<Diff>
Capture the diff for root.
root
None
HEAD
git diff HEAD
Some("HEAD~3..HEAD")