From cdc8dce666fb2a2676d50b840e7117d704b25a71 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Wed, 17 Jun 2026 19:14:08 +0700 Subject: [PATCH] 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 --- .gitattributes | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..192ac50 --- /dev/null +++ b/.gitattributes @@ -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