Skip to content

Commit bfdb341

Browse files
jrusso1020claude
andcommitted
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 heygen-com#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>
1 parent e59089b commit bfdb341

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Normalize text files to LF on checkout and in the repo, regardless of the
2+
# contributor's OS. Without this, files saved on Windows can land in PRs with
3+
# CRLF endings or a UTF-8 BOM, which makes every line differ at the byte level
4+
# and trips GitHub's "Binary file not shown" diff heuristic.
5+
* text=auto eol=lf
6+
17
# Golden baseline videos for regression tests
28
packages/producer/tests/*/output/output.mp4 filter=lfs diff=lfs merge=lfs -text
39

0 commit comments

Comments
 (0)