From: Joel Rosdahl Date: Mon, 15 Jul 2019 20:37:04 +0000 (+0200) Subject: Add .editorconfig X-Git-Tag: v4.0~895 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4cb075cc3be2f7619cf99acd6d593f2b3d331568;p=thirdparty%2Fccache.git Add .editorconfig This makes GitHub show tabs as 2 spaces wide, which is what I like (and also what the code style assumes when counting characters for line widths). --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..1164b5c1a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[*.{c,h}] +indent_style = tab +indent_size = 2 + +[*.{bash,py}] +indent_style = space +indent_size = 4 + +[Makefile] +indent_style = tab