From b548d698a0e42d28614acb6a0792d7cfbe7ddef4 Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Mon, 8 Oct 2018 22:03:53 +0000 Subject: 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 --- .editorconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to '.editorconfig') 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 -- cgit v1.2.3