Tom Care 8 лет назад
Родитель
Сommit
00d2b0a460
1 измененных файлов с 24 добавлено и 8 удалено
  1. 24 8
      .gitattributes

+ 24 - 8
.gitattributes

@@ -1,11 +1,27 @@
-*.baseline -crlf
-*.cmd -crlf
-test/**/*.js -crlf
+# Enable normalization of all files (including new) by default
+* eol=lf whitespace=trailing-space,tab-in-indent
+
+# Unittest exclusions
+*.baseline   eol=crlf
+test/**/*.js eol=crlf
+
+# These tests cannot have line ending conversions, so we treat them as binary
 test/es6/HTMLComments.js binary diff=cpp
-*.wasm binary
+
+# Source files must be LF
 *.cpp text eol=lf diff=cpp
-*.h text eol=lf diff=cpp
+*.h   text eol=lf diff=cpp
 *.inl text eol=lf diff=cpp
-*.vcproj text eol=crlf diff=xml
-*.vcxproj text eol=crlf diff=xml
-*.sln text eol=crlf diff=xml
+
+# VC Project files should be CRLF
+*.props   eol=crlf diff=xml
+*.vcproj  eol=crlf diff=xml
+*.vcxproj eol=crlf diff=xml
+*.sln     eol=crlf diff=xml
+
+# Other exceptions
+*.cmd  eol=crlf
+*.sh   eol=lf
+*.wasm binary
+
+#TODO : merge rules for bytecode cache <merge=binary>