From 696d2dd38770f6a94956b76cb0d39310a4ecbbb8 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Fri, 20 Feb 2026 10:55:29 -0700 Subject: [PATCH] Add .gitattributes to enforce LF line endings Prevents CRLF contamination from Windows-origin files. All text files normalized to LF; binary extensions excluded. --- .gitattributes | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4bc1746 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,36 @@ +# Normalize line endings to LF on commit +* text=auto eol=lf + +# Force LF for all source files (prevents CRLF contamination) +*.py text eol=lf +*.c text eol=lf +*.h text eol=lf +*.js text eol=lf +*.mjs text eol=lf +*.ts text eol=lf +*.json text eol=lf +*.md text eol=lf +*.mdx text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.toml text eol=lf +*.cfg text eol=lf +*.txt text eol=lf +*.css text eol=lf +*.astro text eol=lf +*.html text eol=lf +*.svg text eol=lf +Makefile text eol=lf +Dockerfile text eol=lf +*.sh text eol=lf + +# Binary files — leave as-is +*.bin binary +*.ihx binary +*.hex binary +*.png binary +*.jpg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary