From 537ffac39c7ae87ac6445d7c94599dc37ef86da0 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 3 Oct 2026 14:40:46 +0800 Subject: [PATCH] Chore: forces `eol=lf` --- .gitattributes | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitattributes b/.gitattributes index 2a442b718..e340b8450 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,15 @@ +# Normalise text files to LF in the repository and check them out with LF, so a CRLF +# never enters an object and never shows up as a whole-file diff on Windows. +* text=auto eol=lf + +# The vendored AMD Display Library SDK ships with CRLF endings of its own. Leaving it +# alone keeps `Dep (3rdparty): upgrades display-library` from carrying a 7000-line +# whitespace diff, and a re-vendor will not fight the rule above. +src/3rdparty/display-library/** -text + +# The logo fixtures store the exact bytes fastfetch prints, ANSI escapes included. +# They are demo data rather than text, and are not read by any test. +*.fflogo -text + *.h linguist-language=c *.c linguist-language=c