We may not forbid the using the long lines for all files.
Two possible methods to make
git diff with long lines easier to read:
Method 1: Git can highlight changes in lines instead of showing two lines of each version:
git diff --word-diff
It will prints changes in format like:
Method 2: Make git wrap long lines:
PAGER='' git diff --word-diff