From 3a3c66f290aa880f105515eca43d05fbeee5ca2f Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Fri, 11 Sep 2026 15:42:10 +0200 Subject: [PATCH] chore: add .gitattributes for consistent line endings Ensures shell scripts keep LF and PowerShell scripts keep CRLF across Windows and Linux checkouts. Co-Authored-By: Claude Sonnet 5 --- .gitattributes | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..03f103d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,21 @@ +# Auto-detect text files and normalize line endings to LF in the repo +* text=auto eol=lf + +# Scripts must keep their platform-native line endings +*.sh text eol=lf +*.ps1 text eol=crlf + +# Documentation and config +*.md text eol=lf +*.json text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.toml text eol=lf +*.tsv text eol=lf + +# Never let Git touch line endings in these +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary