SublimeDiffView icon indicating copy to clipboard operation
SublimeDiffView copied to clipboard

More granular diffs

Open CJTozer opened this issue 9 years ago • 3 comments

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 avatar Dec 15 '15 18:12 CJTozer

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

CJTozer avatar Dec 15 '15 18:12 CJTozer

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

CJTozer avatar Dec 18 '15 09:12 CJTozer

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

CJTozer avatar Dec 19 '15 09:12 CJTozer