From 13cfd105fe2cdd0786b5f2560f67f506535566be Mon Sep 17 00:00:00 2001 From: Per Wilhelmsen Date: Thu, 5 May 2011 23:37:53 +0200 Subject: [PATCH] Repository: Add filetype attribute handling for specific filetypes found in the repository. --- .gitattributes | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..9fa544d91af --- /dev/null +++ b/.gitattributes @@ -0,0 +1,16 @@ +# Lineendings +*.sln eol=crlf +*.vcproj eol=crlf +*.vcxproj* eol=crlf + +# Whitespace rules +# strict (no trailing, no tabs) +*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol +*.h whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol + +# normal (no trailing) +*.sql whitespace=trailing-space,space-before-tab,cr-at-eol +*.txt whitespace=trailing-space,space-before-tab,cr-at-eol + +# special files which must ignore whitespace +*.patch whitespace=-trailing-space