浏览代码

Add whitespace=tab-in-indent attribute for sources

Tell Git 1.7.2 and later to reject indentation with TABs.
Brad King 15 年之前
父节点
当前提交
1cbc53f022
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .gitattributes

+ 6 - 0
.gitattributes

@@ -12,3 +12,9 @@ configure        crlf=input
 *.dsw           -crlf
 *.dsw           -crlf
 *.sln           -crlf
 *.sln           -crlf
 *.vcproj        -crlf
 *.vcproj        -crlf
+
+*.c              whitespace=tab-in-indent
+*.h              whitespace=tab-in-indent
+*.cxx            whitespace=tab-in-indent
+*.txt            whitespace=tab-in-indent
+*.cmake          whitespace=tab-in-indent