浏览代码

adding repository .gitattributes file to handle line endings across OSes.

Joachim Krech 9 年之前
父节点
当前提交
c8eaa88dec
共有 1 个文件被更改,包括 23 次插入0 次删除
  1. 23 0
      .gitattributes

+ 23 - 0
.gitattributes

@@ -0,0 +1,23 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Explicitly declare text files you want to always be normalized and converted
+# to native line endings on checkout.
+*.c text
+*.h text
+*.txt text
+*.xsd text
+*.pdsc text
+*.svd text
+*.bat text
+
+# Declare files that will always have CRLF line endings on checkout.
+*.uvproj text eol=crlf
+*.uvproj text eol=crlf
+
+# Denote all files that are truly binary and should not be modified.
+*.png binary
+*.jpg binary
+*.a binary
+*.lib binary
+*.exe binary