8 ms·
word diff gets you halfway without that complexity
by fragmede 3y ago
word diff gets you halfway without that complexity
- abdullahkhalids 3y agoDo you mean the diff system inbuilt into Microsoft Word or Google docs etc?
- senknvd 3y agoThere is a --word-diff flag in git diff. It can also be customized using --word-diff-regex to possibly match sentences.
- abdullahkhalids 3y agoI see. From the docs [1] --word-diff-regex=<regex> ... A match that contains a newline is silently truncated(!) at the newline. If I understand this correctly, if you use newlines inside a sentence (if you are writing a fixed width document, for example), this won't work. [1] https://git-scm.com/docs/git-diff https://git-scm.com/docs/git-diff
- mzs 3y agopipe through "fmt -sw999999999999" first