From 35d5df8f0487d98a9cac2f7dcab9d109f324e00d Mon Sep 17 00:00:00 2001 From: John Jansen Date: Sat, 16 May 2026 14:06:11 +1200 Subject: [PATCH] fix(ci): force LF for diffview testdata fixtures on Windows --- .gitattributes | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitattributes b/.gitattributes index 2e533aabaa..7e92e7bf1a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,10 @@ .github/crush-schema.json linguist-generated=true internal/agent/hyper/provider.json linguist-generated=true internal/agent/testdata/**/*.yaml -diff linguist-generated=true + +# Embedded test fixtures consumed by chroma syntax highlighting. Without +# this, Windows checkouts with core.autocrlf=true convert these files to +# CRLF, which makes the Go lexer mis-tokenize trailing braces and breaks +# diffview golden tests at specific widths. +internal/ui/diffview/testdata/*.before text eol=lf +internal/ui/diffview/testdata/*.after text eol=lf