Add .gitattributes file to force line-endings to be CRLF when checking out VS sln/proj files

This commit is contained in:
tomcw 2017-09-10 17:25:53 +01:00
parent e3d8a40cdb
commit c8dc857bbb

12
.gitattributes vendored Normal file
View File

@ -0,0 +1,12 @@
# ref: https://help.github.com/articles/dealing-with-line-endings/#platform-all
# Set the default behavior, in case people don't have core.autocrlf set.
# (Check with git config --global --list)
* text=auto
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.vcproj text eol=crlf
*.vcxproj text eol=crlf
*.vcxproj.filters text eol=crlf
*.bat text eol=crlf