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