blob: 23f98fffa38cb97875db0ba787e9574fa51fc884 [file] [log] [blame]
Phil Nashfaafa242013-10-18 07:53:05 +01001# This sets the default behaviour, overriding core.autocrlf
2* text=auto
3
4# All source files should have unix line-endings in the repository,
5# but convert to native line-endings on checkout
6*.cpp text
7*.h text
8*.hpp text
9
10# Windows specific files should retain windows line-endings
Martin Hořeňovskýf0f40a02018-01-18 12:35:40 +010011*.sln text eol=crlf
12
Martin Hořeňovskýe13d9ca2018-02-09 16:49:35 +010013# Keep executable scripts with LFs so they can be run after being
14# checked out on Windows
15*.py text eol=lf
16
17
Martin Hořeňovskýf0f40a02018-01-18 12:35:40 +010018# Keep the single include header with LFs to make sure it is uploaded,
19# hashed etc with LF
Martin Hořeňovskýb9328472018-07-23 10:15:52 +020020single_include/**/*.hpp eol=lf
Martin Hořeňovský42213d42018-01-26 16:45:32 +010021# Also keep the LICENCE file with LFs for the same reason
22LICENCE.txt eol=lf