chore: enforce LF line endings via gitattributes

This commit is contained in:
Bohdan Triapitsyn
2026-07-20 19:38:02 +03:00
parent 1e8979d2ef
commit 841c6639b8
2 changed files with 118 additions and 94 deletions
+24
View File
@@ -0,0 +1,24 @@
# Normalize all text files to LF in the repository, regardless of the
# contributor's OS or git config. Prevents whole-file CRLF commits from
# Windows environments.
* text=auto eol=lf
# Windows scripts must keep CRLF on checkout.
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Binary assets — never touch line endings.
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.icns binary
*.car binary
*.jar binary
*.zip binary
*.ttf binary
*.woff binary
*.woff2 binary
*.pdf binary