# Git 属性配置文件
# 统一换行符处理,避免跨平台问题

# 自动检测文本文件并规范化行尾
* text=auto

# C/C++ 源代码使用 LF
*.c text eol=lf
*.h text eol=lf
*.cpp text eol=lf
*.hpp text eol=lf

# Makefile 使用 LF
Makefile text eol=lf
*.mk text eol=lf

# 文档使用 LF
*.md text eol=lf
*.txt text eol=lf

# 配置文件使用 LF
*.json text eol=lf
*.xml text eol=lf
*.ini text eol=lf

# Windows 脚本使用 CRLF
*.bat text eol=crlf
*.cmd text eol=crlf

# Shell 脚本使用 LF
*.sh text eol=lf

# 二进制文件不转换
*.bin binary
*.fw binary
*.o binary
*.a binary
*.so binary
*.dll binary
*.exe binary
*.mp3 binary
*.wav binary
*.jpg binary
*.png binary
*.gif binary
