From 9aab5623bfb900ede4aa8d1a545f1daca5fb1ad0 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Fri, 21 Aug 2026 17:49:11 +0800 Subject: [PATCH] gitattributes: keep LF in golden/test data files on Windows The oakotio parity tests byte-compare serialized JSON against the tests/data goldens; with only `* text=auto`, a Windows checkout hands out CRLF and every round-trip assertion fails on the line endings alone. Pin *.json and *.ove (XML) to eol=lf. --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index 70661ac67..3b4b1e0f1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,3 +6,8 @@ *.cpp text eol=lf *.sh text eol=lf *.desktop text eol=lf + +# Golden/project data files are byte-compared by tests — keep LF on +# Windows checkouts too (text=auto would hand out CRLF there). +*.json text eol=lf +*.ove text eol=lf