From 07b870488d49447be8f0fb5775af401a5a008d6f Mon Sep 17 00:00:00 2001 From: farion1231 Date: Sat, 6 Sep 2025 11:28:58 +0800 Subject: [PATCH] fix: add .gitattributes to resolve line ending inconsistencies - Configure unified line ending rules (LF) - Fix issue where Cargo.toml always shows as modified on Windows --- .gitattributes | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..695831d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,38 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.rs text eol=lf +*.toml text eol=lf +*.json text eol=lf +*.md text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.txt text eol=lf + +# TypeScript/JavaScript files +*.ts text eol=lf +*.tsx text eol=lf +*.js text eol=lf +*.jsx text eol=lf + +# HTML/CSS files +*.html text eol=lf +*.css text eol=lf +*.scss text eol=lf + +# Shell scripts +*.sh text eol=lf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary +*.ttf binary +*.exe binary +*.dll binary \ No newline at end of file