On 9. Nov 2006, at 23:56, Grant Hollingworth wrote:
The 'Statistics (Lines Added/Removed)' command in the Diff bundle works by counting + and - characters in the first column. The current count includes the '---' and '+++' that unified diffs have in the first two lines.
The fix is to skip the first two lines. <Statistics (Lines Added:Removed).tmCommand>
Thanks, unfortunately for e.g. svn diff, there are two lines above the +++/--- lines. So it seems a better approach would be to explicitly match the lines (and exclude them, i.e. grep -v). That should also make it work with diffs that have patches for multiple files.