From 66cfe4699b35a5053203545108d590c4d4b5c1d1 Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Sun, 27 Sep 2026 20:32:43 -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. Also converts .gitignore to LF: it mixed CRLF, CR and LF endings, and the lone CRs made Git treat it as a binary file. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 13 +++++++++++-- .gitignore | 49 +++++++++++++++++++++++++------------------------ 2 files changed, 36 insertions(+), 26 deletions(-) diff --git a/.gitattributes b/.gitattributes index a196c95..179a13c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,9 +1,18 @@ +# 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 -# Auto detect text files and perform LF normalization -* text=auto # Custom for Visual Studio *.cs diff=csharp diff --git a/.gitignore b/.gitignore index 58bcbf8..1d9c698 100644 --- a/.gitignore +++ b/.gitignore @@ -1,32 +1,33 @@ -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp - -# ========================= -# Operating System Files -# ========================= - -# OSX -# ========================= - +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + .DS_Store .AppleDouble .LSOverride # Icon must end with two \r -Icon +Icon + # Thumbnails ._*