logoalt Hacker News

devman006/04/20251 replyview on HN

git does have word diffing if you need something more granular than line diffing, the default delimiter being whitespace.


Replies

itake06/04/2025

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.

show 1 reply