From edbce97a740a08855f9b0cdab14ce2d87754f722 Mon Sep 17 00:00:00 2001 From: Peter Foster Date: Wed, 15 Apr 2026 02:45:17 +0100 Subject: [PATCH] Add .gitattributes to normalise line endings Fixes Windows git showing modified files after Linux commits. LF stored in repo; CRLF on Windows checkout for all source files. Co-Authored-By: Claude Sonnet 4.6 --- .gitattributes | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c353d08 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +# Normalise line endings: LF in repo, native on checkout +* text=auto + +# Force CRLF on checkout for Windows source files +*.cs text eol=crlf +*.xaml text eol=crlf +*.csproj text eol=crlf +*.sln text eol=crlf +*.json text eol=crlf +*.txt text eol=crlf +*.md text eol=crlf +*.csv text eol=crlf + +# Binaries — no line-ending conversion +*.png binary +*.jpg binary +*.ico binary +*.dll binary +*.exe binary