path: root/.editorconfig
diff options
authorbrian m. carlson <>2018-10-08 22:03:53 (GMT)
committerJunio C Hamano <>2018-10-09 09:34:15 (GMT)
commitb548d698a0e42d28614acb6a0792d7cfbe7ddef4 (patch)
treeacbe4154d852f90d2dc186c1439d0184e37a1161 /.editorconfig
parent6f9beef335de5baff72e146a8af9754973d598e4 (diff)
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 <> Reviewed-by: Taylor Blau <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to '.editorconfig')
1 files changed, 2 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index 8667740..42cdc4b 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -2,6 +2,8 @@
charset = utf-8
insert_final_newline = true
+# The settings for C (*.c and *.h) files are mirrored in .clang-format. Keep
+# them in sync.
indent_style = tab
tab_width = 8