CJTozer / SublimeDiffView

Side-by-Side Git, SVN and Bazaar Diff Viewer for Sublime Text 3
https://packagecontrol.io/packages/DiffView
MIT License
20 stars 7 forks source link

More granular diffs #9

Open CJTozer opened 8 years ago

CJTozer commented 8 years ago

This was originally a bug when the plugin was using 'porcelain' diffs.

Delete a word from the beginning of a whitespace-indented line. You get a 'porcelain' diff that just has:

@@ -502 +507,2 @@ class HunkDiff(object):
-for
         old comment words
~

This is Git being weird, dunno how to work around it...

CJTozer commented 8 years ago

...and it means we get the indentation of the delete region wrong...

CJTozer commented 8 years ago

Perhaps try the basic --word-diff rather than --word-diff=porcelain?

CJTozer commented 8 years ago

Not sure this will be possible with native SVN diffs...