summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorAndreia Gaita <shana@spoiledcat.net>2024-04-10 16:59:57 +0200
committerAndreia Gaita <shana@spoiledcat.net>2024-04-10 17:26:36 +0200
commit536ca28ea96c093505e1b33939bd0c810bbaae1f (patch)
treec93e8864a4528813e85d4cf9f545baf66e4f3d55 /.gitattributes
parent1f0f81049fc470fe10ddb64086c94b9c595ec81f (diff)
downloadredot-engine-536ca28ea96c093505e1b33939bd0c810bbaae1f.tar.gz
Ensure all Visual Studio files are generated with CRLF
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 8d2fb108ba..ccc576c2e1 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -9,6 +9,8 @@ thirdparty/* linguist-vendored
*.bat eol=crlf
# And some test files where the EOL matters
*.test.txt -text
+# And also the templates for Visual Studio files, which VS will always force CRLF on
+/misc/msvs/*.template eol=crlf
# The above only works properly for Git 2.10+, so for older versions
# we need to manually list the binary files we don't want modified.