Open skjasm opened 1 year ago
Nothing in Git is language context-aware, most likely. It's just text.
The fancy tool you want is probably https://github.com/Wilfred/difftastic
Fair enough. SM is at some level aware of what's strings and what's not since it can color syntax, but I guess that information is not available to the diff engine.
I think SM doesn't do any diff by itself but just call the git executable. And then color the diff output from git with corresponding syntax definition.
Version info
Description
"Hide whitespace changes" also hides whitespace changes inside strings
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
I expected "Hide whitespace changes" to hide whitespace changes in code that do not affect the program: spaces around punctuation, indentation in C++. This works.
I expected Sublime Merge to still show all changes that affect the program. Changing the content of a string is always significant, even when the change is only whitespace in the string.
Screenshots