From bf0e8922bbd1c44f958a20a2e287a80605d4d655 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Thu, 5 Aug 2021 12:59:15 +0530 Subject: [PATCH] add .gitattributes file to enforce lf line-endings --- .gitattributes | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..7535f72b9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# We'll let Git's auto-detection algorithm infer if a file is text. If it is, +# enforce LF line endings regardless of OS or git configurations. +* text=auto eol=lf + +# Isolate binary files in case the auto-detection algorithm fails and +# marks them as text files (which could brick them). +*.{png,jpg,jpeg,gif,webp,woff,woff2} binary