From 0baed2271c0d57090d05a391d9b6b3dc11c18841 Mon Sep 17 00:00:00 2001 From: Local User Date: Mon, 8 Dec 2025 11:41:51 +0800 Subject: [PATCH] Add .gitattributes to show C++ as primary language --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..193e04e --- /dev/null +++ b/.gitattributes @@ -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++