From 8fb400f2238a42d67b910aeeb12bbb1146188107 Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Mon, 11 Jan 2016 10:07:20 -0800 Subject: [PATCH] Force EOL to be LF Causes git to checkout the files with LF EOL on all platforms. Also adds a .editorconfig file to have editors create new files with the proper settings, if they have support for reading it. --- .editorconfig | 20 ++++++++++++++++++++ .gitattributes | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..04ba039 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] + +# Change these settings to your own preference +indent_style = space +indent_size = 2 + +# We recommend you to keep these unchanged +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e7c1d93 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text eol=lf