From 9f5ceba75e2fb9d3e562c8e3741a6edc7f7385f8 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 27 Aug 2020 21:40:58 +0300 Subject: [PATCH] update .gitattributes text=binary doesn't work well for some patches. --- .gitattributes | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 69d5dca465..33487390ed 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,12 +1,13 @@ # Default. * text eol=lf -# Patches. -*.diff text=binary -*.patch text=binary -*.patch32 text=binary -*.patch64 text=binary -*.patch.* text=binary +# Treat patch files as binaries but let diff'ing them +# as normal text. +*.diff binary diff +*.patch binary diff +*.patch32 binary diff +*.patch64 binary diff +*.patch.* binary diff # Powershell scripts. *.ps1 text eol=crlf