Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-10-09 01:03:53 +0300
committerJunio C Hamano <gitster@pobox.com>2018-10-09 12:34:15 +0300
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 <sandals@crustytoothpaste.net> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index 8667740e1d..42cdc4bbfb 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.
[*.{c,h,sh,perl,pl,pm}]
indent_style = tab
tab_width = 8