From 8035fe83cd17570952aa653b8b2d6a6000eb7a76 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. --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 6ae2393bfa0..2d8c6677fe0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -* text eol=lf +* text=auto eol=lf *.blade.php diff=html *.css diff=css