From 211c642b60a41396d570019e680d042ccc114a9f Mon Sep 17 00:00:00 2001 From: K7ZVX Date: Thu, 14 May 2026 22:42:14 +0000 Subject: [PATCH] build: add .gitattributes to enforce LF line endings Forces all text files to use LF on commit regardless of the editor or OS that wrote them. Prevents the line-ending churn that has been inflating diffs (e.g. 1510 lines of churn on config.py in commit 493b43f for what was really a 12-line change). The next commit will normalize all existing files; from there forward, diffs only show real semantic changes. --- .gitattributes | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..44ce2f0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,25 @@ +# Enforce LF line endings on commit for all text files +* text=auto eol=lf + +# Explicit overrides for files that must keep specific endings +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Binary files — never touch +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.pdf binary +*.db binary +*.sqlite binary +*.sqlite3 binary +*.zip binary +*.tar binary +*.gz binary +*.woff binary +*.woff2 binary +*.ttf binary +*.eot binary