chore: normalize line endings to LF via .gitattributes

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) <noreply@anthropic.com>
This commit is contained in:
James
2026-05-14 10:42:01 -07:00
co-authored by Claude Opus 4.7
parent e59089bf75
commit bfdb341494
+6
View File
@@ -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