From 7c5b0f6a9ff5041ea6f4213c9827170c60a376f0 Mon Sep 17 00:00:00 2001 From: Kevin Hao Date: Wed, 17 Dec 2025 12:23:27 +0800 Subject: [PATCH] .editorconfig: respect .editorconfig settings from parent directories MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Setting 'root' to 'true' prevents the editor from searching for other .editorconfig files in parent directories. However, a common workflow involves generating a patch with 'git format-patch' and opening it in an editor within the kernel source directory. In such cases, we want any specific settings for patch files defined in an .editorconfig located above the kernel source directory to remain effective. Therefore, remove the 'root' setting from the kernel .editorconfig. Link: https://lkml.kernel.org/r/20251217-editconfig-v1-1-883e6dd6dbfa@gmail.com Signed-off-by: Kevin Hao Cc: Íñigo Huguet Cc: Danny Lin Cc: Mickaël Salaün Cc: Masahiro Yamada Signed-off-by: Andrew Morton --- .editorconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 29a30ccfc07bf..b5ea32b6954b9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -root = true - [{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}] charset = utf-8 end_of_line = lf -- 2.47.3