From 396d7ea928b737fa6829d45e5d2d45717606613d Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Fri, 21 Sep 2018 11:36:28 -0700 Subject: [PATCH] Mark several known binary extensions as `-text` --- .gitattributes | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitattributes b/.gitattributes index 779c409b1c6..626c5a297c8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -39,3 +39,10 @@ *.py text *.lua text *.expected text + +# Explicitly set a bunch of known extensions to binary, because Git < 2.10 will treat +# `* text=auto eol=lf` as `* text eol=lf` +*.png -text +*.jpg -text +*.jpeg -text +*.gif -text