From 962f8d5252b3f5ec4d19e0cd2a430934bd55cc6d Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Sun, 28 Jun 2015 01:44:30 +0100 Subject: Normalise line endings using a .gitattributes file. Unfortunately this required that this commit globally modify most files. If you want to use git blame to see the real author of a line use the ``-w`` flag so that whitespace changes are ignored. --- .gitattributes | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitattributes (limited to '.gitattributes') diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..d9e2956e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,41 @@ +# Autodetect text files and ensure that we normalise their +# line endings to lf internally. When checked out they may +# use different line endings. +* text=auto + +# Check out with crlf (Windows) line endings +*.sln text eol=crlf +*.csproj text eol=crlf +*.cs text diff=csharp eol=crlf +*.fs text eol=crlf +*.fsproj text eol=crlf +*.fsy text eol=crlf +*.fsl text eol=crlf +*.resx text eol=crlf +*.vsixmanifest text eol=crlf +*.atg text eol=crlf +version.ssc text eol=crlf +packages.config text eol=crlf +App.config text eol=crlf +Build/updateVersionFile.xml text eol=crlf +*.bat text eol=crlf +*.cmd text eol=crlf +*.snippet text eol=crlf + +# Check out with lf (UNIX) line endings +*.sh text eol=lf +*.py text eol=lf +Makefile text eol=lf +.gitignore text eol=lf +.gitattributes text eol=lf +*.el text eol=lf +*.sty text eol=lf +*.vim text eol=lf +lit.site.cfg text eol=lf +lit.local.cfg text eol=lf +*.expect text eol=lf +*.md text eol=lf + +# For the remaining files the line endings of checked out +# files is defined by the ``core.eol`` git config variable. +# By default this is the native line ending for the platform. -- cgit v1.2.3