From b94f8c6b5f9be54939eceda05ebac8c2c8eff51f Mon Sep 17 00:00:00 2001 From: Brock Date: Thu, 26 Mar 2026 20:12:47 -0400 Subject: [PATCH] chore: add .gitattributes for consistent line endings (#5385) Normalize line endings to LF across all platforms. Without this, Windows contributors get CRLF warnings on every checkout and test run due to generated harness files. --- .gitattributes | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..3b3c6b93e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,28 @@ +# Auto detect text files and normalize line endings to LF +* text=auto eol=lf + +# Rust sources +*.rs text eol=lf +*.toml text eol=lf +*.lock text eol=lf + +# Web assets +*.html text eol=lf +*.css text eol=lf +*.js text eol=lf +*.ts text eol=lf +*.json text eol=lf + +# Config +*.yml text eol=lf +*.yaml text eol=lf +*.md text eol=lf +*.sh text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.gif binary +*.ico binary +*.wasm binary +*.avif binary