I disagree about the git part. Or at least mine is not configured as it should.
Lyx, by default at least, wrap the line to the 80-char limits which make a change (of a removed -or added- coma -or word-) several breakline due to the shift. Which makes the `git diff` almost unreadable and the change hard to find.