Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconifg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
Comment thread
uberlinuxguy marked this conversation as resolved.
Comment on lines +6 to +8

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf

Remove local enforcement of line endings in favor of enforcing what goes into the repo via .gitattributes

insert_final_newline = true


# tabstops for .c .cpp and .h files
[*.{c,cpp,h}]
indent_style = tab
Comment thread
slime73 marked this conversation as resolved.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
Comment thread
uberlinuxguy marked this conversation as resolved.
Outdated
Comment thread
uberlinuxguy marked this conversation as resolved.
Outdated
*.c text eol=lf
*.h text eol=lf
*.cpp text eol=lf

*.sln text eol=crlf