Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I 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



pipe through "fmt -sw999999999999" first




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: