From a0b1c8d3a477c1cb4813d8e127a56961707ca42b Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Fri, 19 Jun 2026 18:00:19 -0400 Subject: [PATCH] Allow bad whitespace in patches. (#52485) --- .gitattributes | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index d0c3b3e9cc..e804e5213e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,4 +2,9 @@ ports/** -linguist-detectable # Declare files that will always have LF line endings on checkout. -scripts/ci.baseline.txt text eol=lf \ No newline at end of file +scripts/ci.baseline.txt text eol=lf + +# Stored patch files may legitimately contain whitespace that represents the +# patched content rather than the patch file itself. +*.diff -whitespace +*.patch -whitespace