git
allows CRLF
, CR
and LF
as line feeds/EOL. What is the recommended way to deal with them:
- allow all contributors to use whatever EOL and ignore it in
git
'sdiff
(e.g. withgit config core.whitespace cr-at-eol
as suggested in git-diff to ignore ^M) (which disadvantages?) - define one line feed to be used for the project, notify all contributors about it in
CONTRIBUTING
orHACKING
and enforce it by refusing patches which don't comply (more work) - let everything be converted by
git
by settinggit config --global core.autocrlf true