From c8dc857bbbd9ba1536c17d0d7bd78246dc3d0a0a Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 10 Sep 2017 17:25:53 +0100 Subject: [PATCH] Add .gitattributes file to force line-endings to be CRLF when checking out VS sln/proj files --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..2efd4448 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# ref: https://help.github.com/articles/dealing-with-line-endings/#platform-all + +# Set the default behavior, in case people don't have core.autocrlf set. +# (Check with git config --global --list) +* text=auto + +# Declare files that will always have CRLF line endings on checkout. +*.sln text eol=crlf +*.vcproj text eol=crlf +*.vcxproj text eol=crlf +*.vcxproj.filters text eol=crlf +*.bat text eol=crlf