From fa349e2b54100c6486a8bf369964f1738e19cabd 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 #239 of hydephp/hyde. --- .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