修改 .gitattributes 统一换行符
This commit is contained in:
+62
-4
@@ -1,5 +1,63 @@
|
|||||||
* text=auto
|
# 所有文本文件在提交时自动转为 LF
|
||||||
*.js text eol=lf
|
* text=auto eol=lf
|
||||||
*.py text eol=lf
|
|
||||||
|
# 明确指定源码文件类型(提交时转 LF)
|
||||||
|
*.c text eol=lf
|
||||||
*.cpp text eol=lf
|
*.cpp text eol=lf
|
||||||
*.h text eol=lf
|
*.h text eol=lf
|
||||||
|
*.hpp text eol=lf
|
||||||
|
*.hxx text eol=lf
|
||||||
|
*.cc text eol=lf
|
||||||
|
*.cxx text eol=lf
|
||||||
|
*.inl text eol=lf
|
||||||
|
|
||||||
|
# 脚本和配置
|
||||||
|
*.py text eol=lf
|
||||||
|
*.sh text eol=lf
|
||||||
|
*.bash text eol=lf
|
||||||
|
*.cmake text eol=lf
|
||||||
|
CMakeLists.txt text eol=lf
|
||||||
|
|
||||||
|
# 文档和配置
|
||||||
|
*.txt text eol=lf
|
||||||
|
*.md text eol=lf
|
||||||
|
*.json text eol=lf
|
||||||
|
*.xml text eol=lf
|
||||||
|
*.yaml text eol=lf
|
||||||
|
*.yml text eol=lf
|
||||||
|
*.toml text eol=lf
|
||||||
|
*.conf text eol=lf
|
||||||
|
*.cfg text eol=lf
|
||||||
|
*.ini text eol=lf
|
||||||
|
|
||||||
|
# Makefile 特别注意(必须 LF)
|
||||||
|
Makefile text eol=lf
|
||||||
|
*.mk text eol=lf
|
||||||
|
|
||||||
|
# Qt 相关
|
||||||
|
*.pro text eol=lf
|
||||||
|
*.pri text eol=lf
|
||||||
|
*.qrc text eol=lf
|
||||||
|
*.ui text eol=lf
|
||||||
|
|
||||||
|
# 二进制文件(不要碰)
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.gif binary
|
||||||
|
*.bmp binary
|
||||||
|
*.ico binary
|
||||||
|
*.pdf binary
|
||||||
|
*.zip binary
|
||||||
|
*.tar.gz binary
|
||||||
|
*.o binary
|
||||||
|
*.obj binary
|
||||||
|
*.exe binary
|
||||||
|
*.dll binary
|
||||||
|
*.so binary
|
||||||
|
*.a binary
|
||||||
|
*.lib binary
|
||||||
|
*.dylib binary
|
||||||
|
*.pyc binary
|
||||||
|
*.pdb binary
|
||||||
|
*.db binary
|
||||||
Reference in New Issue
Block a user