From 356da24feb56c16ccde90a0701f06a58a7515026 Mon Sep 17 00:00:00 2001 From: Jon Kazama Date: Tue, 26 May 2026 20:25:32 +0200 Subject: [PATCH] Extend .gitattributes: source files to eol=lf csharpier check fails with 'different line endings than formatting would result in' when .cs files are CRLF. Linux dev box and Gitea Actions runners both work with LF natively. Extend the LF-override to .cs, .csproj, .sln, .yml, .yaml, .json, .md. Asriel's original CRLF default still applies to file types not listed, to keep the diff against upstream minimal. --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitattributes b/.gitattributes index 921952f..0d49588 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,4 +10,16 @@ .githooks/* text eol=lf scripts/* text eol=lf +# csharpier check fails with "different line endings than formatting would +# result in" when .cs files are CRLF. The Gitea Actions runners are Linux +# and the local dev box is Linux too, so force LF for the entire source +# tree and the supporting text manifests. +*.cs text eol=lf +*.csproj text eol=lf +*.sln text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.json text eol=lf +*.md text eol=lf + *.png binary