With Git, when using the autocrlf = true flag, a warning is still given when line-endings are changed.
autocrlf = true
I understand what the warning is for, and how to
You're looking for the core.whitespace option (see git config --help for details).
core.whitespace
git config --help
You can set this option like so:
$ git config core.whitespace cr-at-eol