Hacker News new | ask | show | jobs
by devman0 379 days ago
git does have word diffing if you need something more granular than line diffing, the default delimiter being whitespace.
1 comments

oo I didnt' realize that. that seems pretty close to what I want, but the git tools (cli or Github Desktop) still print the entire line.

For line diffing, it clips to only show the ~3 line before and after the change. But the word diff still prints the entire line and you have to scroll to find the change in the line wrapping.

You can use `delta` as a diff pager and it includes word-diff-syntax-highlight.