Add .gitattributes for deterministic line endings

Force CRLF checkout for source (matches .editorconfig end_of_line=crlf) so
dotnet format / CI stay deterministic; keep .sh/.yml as LF; mark binaries.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 4.8 committed 2026-06-17 19:14:08 +07:00
1 parent 76a6e632c6
commit cdc8dce666
1 file changed
+21
+21
View File
@@ -0,0 +1,21 @@
# Normalize line endings. Source checks out CRLF on every platform so it matches
# .editorconfig (end_of_line = crlf) and keeps `dotnet format` / CI deterministic.
* text=auto eol=crlf
# Tooling files that must stay LF regardless of platform (CI scripts / workflows).
*.sh text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
# Binary assets — never normalize.
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.ttf binary
*.otf binary
*.woff binary
*.woff2 binary
*.snk binary
*.nupkg binary