Browse Source

gitattributes: set .cginc and .shader files to lf line endings to prevent Unity code auto-updater to create mixed line endings.

Harald Csaszar 6 years ago
parent
commit
a7dc2b1d8f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .gitattributes

+ 4 - 0
.gitattributes

@@ -15,3 +15,7 @@
 *.asset             merge=unityyamlmerge text eol=lf
 *.meta              merge=unityyamlmerge text eol=lf
 *.controller        merge=unityyamlmerge text eol=lf
+
+# Prevent mixed line ending warnings created by Unity's code auto-updater
+*.cginc      text eol=lf
+*.shader     text eol=lf