Add .gitattributes to show C++ as primary language

This commit is contained in:
Local User 2025-12-08 11:41:51 +08:00
parent 6020b4a908
commit 0baed2271c

10
.gitattributes vendored Normal file
View File

@ -0,0 +1,10 @@
# 忽略构建相关文件的语言统计
Makefile linguist-detectable=false
CMakeCache.txt linguist-generated=true
cmake_install.cmake linguist-generated=true
*.cmake linguist-generated=true
# 标记 C++ 为主要语言
*.cpp linguist-language=C++
*.h linguist-language=C++
*.hpp linguist-language=C++