Git Attributes, with control for line-endings

This commit is contained in:
Phil Nash 2013-10-18 07:53:05 +01:00
parent f4959e7699
commit faafa249ad
1 changed files with 11 additions and 0 deletions

11
.gitattributes vendored Normal file
View File

@ -0,0 +1,11 @@
# This sets the default behaviour, overriding core.autocrlf
* text=auto
# All source files should have unix line-endings in the repository,
# but convert to native line-endings on checkout
*.cpp text
*.h text
*.hpp text
# Windows specific files should retain windows line-endings
*.sln text eol=crlf