From da10f2ad1fbd7f4d5e9ee735b25f1bcdd0f4e2ea Mon Sep 17 00:00:00 2001
From: silverwind <me@silverwind.io>
Date: Thu, 5 Dec 2019 19:41:51 +0100
Subject: [PATCH] Ensure LF on checkouts and in editors

This will ensure our repo is always checked out with LF line endings
which should help Windows users who have line ending normalization
enabled.

Additionally, added the LF preference to .editorconfig.
---
 .editorconfig  | 1 +
 .gitattributes | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.editorconfig b/.editorconfig
index 28f1abd3add10..ff5c1b2d414dd 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -5,6 +5,7 @@ root = true
 charset = utf-8
 insert_final_newline = true
 trim_trailing_whitespace = true
+end_of_line = lf
 
 [*.go]
 indent_style = tab
diff --git a/.gitattributes b/.gitattributes
index 56abc3c2bd952..d71939950d672 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,6 +1,7 @@
+* text=auto eol=lf
 conf/* linguist-vendored
 docker/* linguist-vendored
 options/* linguist-vendored
 public/* linguist-vendored
 scripts/* linguist-vendored
-templates/* linguist-vendored
\ No newline at end of file
+templates/* linguist-vendored