From 6c9833670b70146438d54491f77c86231d564f60 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Mon, 22 Nov 2021 21:29:59 -0500 Subject: [PATCH 1/3] First shot at code style stuff --- .editorconifg | 14 ++++++++++++++ .gitattributes | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .editorconifg create mode 100644 .gitattributes diff --git a/.editorconifg b/.editorconifg new file mode 100644 index 0000000..7c4eeb1 --- /dev/null +++ b/.editorconifg @@ -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 +insert_final_newline = true + + +# tabstops for .c .cpp and .h files +[*.{c,cpp,h}] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5b938c1 --- /dev/null +++ b/.gitattributes @@ -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. +*.c text eol=lf +*.h text eol=lf +*.cpp text eol=lf + +*.sln text eol=crlf From 3d86082cd32591270816fc7563bcc173a5eafb54 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Tue, 23 Nov 2021 09:14:38 -0500 Subject: [PATCH 2/3] Update .gitattributes --- .gitattributes | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 5b938c1..1a607bf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,8 +1,7 @@ # 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. +# Set LF for the ending for most source files. *.c text eol=lf *.h text eol=lf *.cpp text eol=lf From d80a9dec07a81216d06d9a2e066a2236c717d2ce Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Tue, 23 Nov 2021 18:50:45 -0500 Subject: [PATCH 3/3] Remove forced working dir EOL --- .gitattributes | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index 1a607bf..4cab1f4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,9 +1,2 @@ # Set the default behavior, in case people don't have core.autocrlf set. * text=auto - -# Set LF for the ending for most source files. -*.c text eol=lf -*.h text eol=lf -*.cpp text eol=lf - -*.sln text eol=crlf