summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-05-02 15:12:49 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-05-03 12:21:51 -0500
commit64f2e8b64f8a5ad56b18e723d6951b62b0141be5 (patch)
treeac4bf3a5143565de951aa64f1bd4ff47b74f9611 /.gitattributes
parentb9e022302aa4a5d97f8b25a1db809e64b46b6f96 (diff)
downloadredot-engine-64f2e8b64f8a5ad56b18e723d6951b62b0141be5.tar.gz
Dotnet: Fix attributes for `sln`/`csproj` files
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitattributes b/.gitattributes
index ccc576c2e1..5af3e121a8 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -5,12 +5,13 @@ thirdparty/* linguist-vendored
# Normalize EOL for all files that Git considers text files
* text=auto eol=lf
-# Except for bat files, which are Windows only files
+# Except for Windows-only / Visual Studio files
*.bat eol=crlf
+*.sln eol=crlf
+*.csproj eol=crlf
+misc/msvs/*.template 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.