]> Kevux Git Server - rit/commitdiff
editorconfig: add Makefiles to "text files"
authorMax Gautier <mg@max.gautier.name>
Fri, 22 Mar 2024 22:17:58 +0000 (23:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Mar 2024 18:42:31 +0000 (11:42 -0700)
The Makefile and makefile fragments use the same indent style than the
rest of the code (with some inconsistencies).

Add them to the relevant .editorconfig section to make life easier for
editors and reviewers.

Signed-off-by: Max Gautier <mg@max.gautier.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.editorconfig

index f9d8196..15d6cbe 100644 (file)
@@ -4,7 +4,7 @@ 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,txt}]
+[{*.{c,h,sh,perl,pl,pm,txt},config.mak.*,Makefile}]
 indent_style = tab
 tab_width = 8