]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add .editorconfig
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 15 Jul 2019 20:37:04 +0000 (22:37 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 15 Jul 2019 20:40:47 +0000 (22:40 +0200)
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).

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..1164b5c
--- /dev/null
@@ -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