From 9cc2d20747515e6f6a8a8f3ac40dd57989688060 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Wed, 12 Aug 2026 21:41:24 -0400 Subject: [PATCH] Keep .patch files LF, like the scripts they sit beside --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitattributes b/.gitattributes index 06b68bb..5b549a2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,3 +7,7 @@ # git, e.g. for a quick on-hardware test) never carries CRLF git would otherwise see as # a spurious modification blocking the next `git pull` there. *.py text eol=lf + +# Patch files are fed to `git apply` against LF sources; a CR sneaking into a context line +# is how a patch that applied yesterday stops applying on somebody else's checkout. +*.patch text eol=lf