Merge pull request #1297 from arrbee/diff-patch-line-totals Add helper API for diff line stats from patch