editorconfig: indicate settings should be kept in sync

Now that we have two places where we set code formatting settings, .editorconfig and .clang-format, it's possible that they could fall out of sync. This is relatively unlikely, since we're not likely to change the tab width or our preference for tabs, but just in case, add comments to both files reminding future developers to keep them in sync. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Oct 8, 2018 at 22:03 UTC b548d698a0e42d28614acb6a0792d7cfbe7ddef4
2 files changed +4
.clang-format
+2
@@ -6,6 +6,8 @@
6
7 # Use tabs whenever we need to fill whitespace that spans at least from one tab
8 # stop to the next one.
9 +#
10 +# These settings are mirrored in .editorconfig. Keep them in sync.
11 UseTab: Always
12 TabWidth: 8
13 IndentWidth: 8
.editorconfig
+2
@@ -2,6 +2,8 @@
2 charset = utf-8
3 insert_final_newline = true
4
5 +# The settings for C (*.c and *.h) files are mirrored in .clang-format. Keep
6 +# them in sync.
7 [*.{c,h,sh,perl,pl,pm}]
8 indent_style = tab
9 tab_width = 8