From 80d2e10fec9c7f318f2ed16230a678138ce292dc Mon Sep 17 00:00:00 2001 From: Thomas Nilles Date: Sat, 19 Sep 2026 16:44:17 -0400 Subject: [PATCH] Add .gitattributes to normalize line endings to LF Store and check out LF everywhere (project targets Linux/Docker), ending the LF->CRLF churn warnings on Windows. Co-Authored-By: Claude Opus 4.8 --- .gitattributes | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b8ce5e6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,25 @@ +# Normalize line endings: store everything with LF in the repo, and check out +# LF in the working tree too (this project targets Linux/Docker). Prevents the +# "LF will be replaced by CRLF" churn on Windows. +* text=auto eol=lf + +# Explicitly text (LF) — source and config. +*.go text eol=lf +*.js text eol=lf +*.css text eol=lf +*.html text eol=lf +*.md text eol=lf +*.toml text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.mod text eol=lf +*.sum text eol=lf +Dockerfile text eol=lf +.env.example text eol=lf + +# Treat common binaries as binary (never munge). +*.png binary +*.jpg binary +*.gif binary +*.ico binary +*.woff2 binary