From cb510f8336667e6448f074f766580290831388b0 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Mon, 5 Oct 2026 06:01:28 +0200 Subject: [PATCH] fix(repo): preserve binary files during line-ending normalization --- .gitattributes | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 78683bbd7..916fb751e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,8 +1,7 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text eol=lf +# Normalize text while preserving binary files. +* text=auto eol=lf -# Explicitly declare text files you want to always be normalized and converted -# to native line endings on checkout. +# Normalize source files. *.c text *.h text *.py text @@ -15,7 +14,7 @@ *.jpg binary *.pdf binary *.jar binary -# the test fixtures the bindings carry: a zip container, which `* text eol=lf` -# above would happily rewrite into an archive nothing can open +# Document fixtures must retain their exact bytes. *.odt binary *.ods binary +*.docx binary