You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#13479 adds a .gitattributes to this repository. It would be helpful if new projects also do the same.
The main thing to add is:
*.crtexteol=lf
It ensures that checkins convert CRLF to LF (although there shouldn't be any as long as one runs the formatter) and checkouts preserve line endings, even without having to set core.autocrlf. If for some reason we want to preserve line endings on checkins as well, it would be *.cr -text instead.
That's about it because the lib directory is ignored; shard repositories do not source in dependencies like Crystal itself does.
The text was updated successfully, but these errors were encountered:
#13479 adds a
.gitattributes
to this repository. It would be helpful if new projects also do the same.The main thing to add is:
It ensures that checkins convert CRLF to LF (although there shouldn't be any as long as one runs the formatter) and checkouts preserve line endings, even without having to set
core.autocrlf
. If for some reason we want to preserve line endings on checkins as well, it would be*.cr -text
instead.That's about it because the
lib
directory is ignored; shard repositories do not source in dependencies like Crystal itself does.The text was updated successfully, but these errors were encountered: