[TxMt] diff statistics off by one
Allan Odgaard
throw-away-1 at macromates.com
Fri Nov 10 16:37:54 UTC 2006
On 10. Nov 2006, at 16:59, Grant Hollingworth wrote:
>> 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.
> Good point. So something like egrep -v '^(\+\+\+|---) ' would be
> better. There's still the unlikely case that someone has added a
> line that starts with two pluses and a space, or removed a line
> that starts with two dashes and a space.
I added you suggested grep, thanks!
More information about the textmate
mailing list