From 4c6f3c35069b008ebcdcd4a10568ba34c98bfb06 Mon Sep 17 00:00:00 2001 From: Mike-Boensel Date: Tue, 17 Feb 2026 21:12:25 -0500 Subject: [PATCH] feat(repo): add .gitattributes for cross-platform line ending normalization Ensures consistent LF line endings in the repository across all platforms. Critical for shell scripts that execute on Linux CI/CD environments. Key changes: - Shell scripts (*.sh) enforce eol=lf to prevent bash interpreter errors - Rust source and config files normalized to LF - Binary files explicitly marked to prevent conversion - Default text=auto provides safe handling for unlisted file types Co-authored-by: Claude Opus 4.6 Simplified --- .gitattributes | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a3382c9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,33 @@ +# Normalize all text files +* text=auto + +# Force LF for scripts and build-critical files +*.sh text eol=lf +Dockerfile* text eol=lf +*.rs text eol=lf +*.toml text eol=lf +*.yml text eol=lf +*.yaml text eol=lf + +# CI +.github/**/* text eol=lf + +# Images +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary + +# Archives +*.zip binary +*.tar binary +*.tgz binary +*.gz binary +*.7z binary + +# Compiled artifacts +*.so binary +*.dll binary +*.exe binary +*.a binary