pub fn diff_stats( repo: &Repository, old: &Oid, new: &Oid, ) -> Result<DiffStats, Error>
Get the diff stats between two commits. Should match the default output of git diff <old> <new> --stat exactly.
git diff <old> <new> --stat