From ceb0e5ed05be1ce782f59bada1b7aac62a664449 Mon Sep 17 00:00:00 2001 From: Nils DEYBACH <68770774+ndeybach@users.noreply.github.com> Date: Thu, 11 Dec 2025 14:44:24 +0100 Subject: [PATCH 1/2] Normalize line endings via .gitattributes --- .gitattributes | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..d5ebfe20d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,48 @@ +# Normalize all text; let Git detect text vs binary +* text=auto + +# Code & scripts (force LF in working tree) +*.py eol=lf +*.pyi eol=lf +*.pyx eol=lf +*.pxd eol=lf +*.pxi eol=lf +*.c eol=lf +*.h eol=lf + +*.sh eol=lf +scripts/* eol=lf +Makefile eol=lf +docs/Makefile eol=lf + +# Config / metadata +*.toml eol=lf +*.cfg eol=lf +*.ini eol=lf +*.yml eol=lf +*.yaml eol=lf +*.json eol=lf +*.in eol=lf + +# Documentation +*.rst eol=lf +*.md eol=lf +*.txt eol=lf + +# Git / CI files +.gitattributes eol=lf +.gitignore eol=lf +.github/** eol=lf + +# Binary assets +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.webp binary +*.ico binary +*.mp4 binary +*.mov binary +*.avi binary +*.mkv binary +*.wav binary \ No newline at end of file From 34289defbc05f4ecb328ef5440fc5be5370916d8 Mon Sep 17 00:00:00 2001 From: Nils DEYBACH <68770774+ndeybach@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:05:13 +0100 Subject: [PATCH 2/2] fix: minimal gitattributes To minimize the area of influence of line ending enforcement, I added only bash scripts and makefiles to forced LF line ending. --- .gitattributes | 51 +++----------------------------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/.gitattributes b/.gitattributes index d5ebfe20d..24b8f0829 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,48 +1,3 @@ -# Normalize all text; let Git detect text vs binary -* text=auto - -# Code & scripts (force LF in working tree) -*.py eol=lf -*.pyi eol=lf -*.pyx eol=lf -*.pxd eol=lf -*.pxi eol=lf -*.c eol=lf -*.h eol=lf - -*.sh eol=lf -scripts/* eol=lf -Makefile eol=lf -docs/Makefile eol=lf - -# Config / metadata -*.toml eol=lf -*.cfg eol=lf -*.ini eol=lf -*.yml eol=lf -*.yaml eol=lf -*.json eol=lf -*.in eol=lf - -# Documentation -*.rst eol=lf -*.md eol=lf -*.txt eol=lf - -# Git / CI files -.gitattributes eol=lf -.gitignore eol=lf -.github/** eol=lf - -# Binary assets -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.webp binary -*.ico binary -*.mp4 binary -*.mov binary -*.avi binary -*.mkv binary -*.wav binary \ No newline at end of file +# POSIX-sensitive files: always LF +*.sh text eol=lf +Makefile text eol=lf \ No newline at end of file