From a7dc2b1d8fa715eb00e9c4beba869e5a933bfb99 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Sat, 27 Apr 2019 14:15:10 +0200 Subject: [PATCH] gitattributes: set .cginc and .shader files to lf line endings to prevent Unity code auto-updater to create mixed line endings. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitattributes b/.gitattributes index 51e4fb69cc..c258040ae5 100644 --- a/.gitattributes +++ b/.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