From a0113debf061aa330a36381ab441334fd187ec5c Mon Sep 17 00:00:00 2001 From: Yussef Dalton Date: Mon, 29 Apr 2024 17:50:17 +0200 Subject: [PATCH] .gitattributes: substitute CRLF only in text files Changing CRLF to LF makes sense for text files, but not images, where doing so can lead to file corruption. This commit tells Git to ignore binary files and only do the substitution in plain text files. Fixes hydephp/hyde#239. Signed-off-by: Caen De Silva --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 212241d..803bb39 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -* text eol=lf +* text=auto eol=lf *.blade.php diff=html *.css diff=css