Hacker News new | ask | show | jobs
by merb 3776 days ago
this doesn't look useful. the left one is just fine. for everything else you wouldn't need a cli diff tool...
1 comments

when one or 2 words change in a long or dense line, it's nice to have the specific changes highlighted

imagine a for loop in which a variable (used on every line) was renamed, and buried in the loop an assignment changed slightly (eg, + became -). with a standard diff, it's really hard (for me) to pick up the minor change. with word by word diffs, it's pretty easy

(i use netbeans diff, not this tool, but they appear similar)

git has built-in word diffing with --word-diff, though. --word-diff=color does almost exactly the same thing.
thanks. this is very nice and i wasn't aware of it

note: need to pipe it to "less -r"