From 333a6d47e4cdb59a665f494d855f609c9c7ca65f Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Sun, 27 Sep 2026 20:32:41 -0500 Subject: [PATCH] Enforce LF line endings with .gitattributes "* text=auto eol=lf" so text files are stored with LF, plus binary rules for image types so their bytes are never converted. Existing export-ignore rules are kept. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 3a2c633..357b869 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,14 @@ +# Normalize line endings to LF in the repository +* text=auto eol=lf + +# Never convert line endings in binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.webp binary +*.ico binary + .gitattributes export-ignore .gitignore export-ignore .travis.yml export-ignore @@ -6,8 +17,6 @@ composer.phar export-ignore phpunit.xml.dist export-ignore /travis export-ignore -# Auto detect text files and perform LF normalization -* text=auto # Custom for Visual Studio *.cs diff=csharp @@ -27,4 +36,4 @@ phpunit.xml.dist export-ignore *.pdf diff=astextplain *.PDF diff=astextplain *.rtf diff=astextplain -*.RTF diff=astextplain \ No newline at end of file +*.RTF diff=astextplain