From bfdb34149461c9c56a631dcf994188592f87a10e Mon Sep 17 00:00:00 2001 From: James Date: Thu, 14 May 2026 10:42:01 -0700 Subject: [PATCH] chore: normalize line endings to LF via .gitattributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `* text=auto eol=lf` so text files are checked in with LF regardless of the contributor's OS. Without this, Windows editors can save files with CRLF (and sometimes a UTF-8 BOM), which makes every line differ at the byte level on diff and trips GitHub's "Binary file not shown" heuristic — see #840 for an example where a ~30-line change was unreviewable for this reason. Existing LFS rules already carry `-text` and remain unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitattributes b/.gitattributes index e2cb66f19..ec68cb840 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,9 @@ +# Normalize text files to LF on checkout and in the repo, regardless of the +# contributor's OS. Without this, files saved on Windows can land in PRs with +# CRLF endings or a UTF-8 BOM, which makes every line differ at the byte level +# and trips GitHub's "Binary file not shown" diff heuristic. +* text=auto eol=lf + # Golden baseline videos for regression tests packages/producer/tests/*/output/output.mp4 filter=lfs diff=lfs merge=lfs -text