Skip to content

Commit

Permalink
Force EOL to be LF
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Arcanemagus committed Jan 11, 2016
1 parent f354d39 commit 8fb400f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text eol=lf

0 comments on commit 8fb400f

Please sign in to comment.