瀏覽代碼

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

Harald Csaszar 6 年之前
父節點
當前提交
a7dc2b1d8f
共有 1 個文件被更改,包括 4 次插入0 次删除
  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