From e47e8ed335c5c4ec890005299c4f51c50be12ada Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Tue, 4 Jul 2017 11:29:33 +0200 Subject: [PATCH] Add .gitattributes Add the good default options as recommended by GitHub. Helps to work around issues when using hybrid environments like the Bash On Windows (see #4228). --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..2f6f6484c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +#* text=auto # Does it cause problems on OSX? + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.cpp text +*.hpp text + +# Declare files that will always have CRLF line endings on checkout. +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Declare files that will always have LF line endings on checkout. +*.sh text eol=lf