瀏覽代碼

Merge pull request #4077 from alcohol/force-lf-eol-for-functional-test-fixtures

force eol LF style, php diff, and some whitespace flags
Jordi Boggiano 9 年之前
父節點
當前提交
ac17e4a32f
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      .gitattributes

+ 8 - 4
.gitattributes

@@ -1,4 +1,8 @@
-* text=auto
-*.php text diff=php
-*.json text eol=lf
-*.test text eol=lf
+# Auto-detect text files, ensure they use LF.
+*       text=auto eol=lf
+
+# These files are always considered text and should use LF.
+# See core.whitespace @ http://git-scm.com/docs/git-config for whitespace flags.
+*.php   text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 diff=php
+*.json  text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
+*.test  text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4