I'm tired of changing core.autocrlf
to true
, input
and false
from time to time in order to make git diff
ignore CRLF
and LF
differences. At this time git diff
does not even display an ^M
character at the diff output, but still behaves like the files are fully different while they are fully same.
I came across git diff --ignore-space-at-eol
switch, which fixes my issue. I am, however, not able to configure this behavior globally.
How can I tell git diff
to use --ignore-space-at-eol
switch by default?