Skip to contentSkip to conversation

.editorconfig: Respect .editorconfig settings from parent directories

PATCH Applied Kevin Hao 1 participant 1 message Dec 17, 2025

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 .editorconfig: Respect .editorconfig settings from parent directories

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.

---
Cc: Íñigo Huguet <[email protected]>
Cc: Danny Lin <[email protected]>
Cc: Mickaël Salaün <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Andrew Morton <[email protected]>

---
 .editorconfig | 2 --
 1 file changed, 2 deletions(-)
.editorconfig +0 -2
index 29a30ccfc07bf2019cc05613c67ed35e02af6490..b5ea32b6954b9ae16b792a397b999da1eab6f95f 100644
@@ -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

---
base-commit: 563c8dd425b59e44470e28519107b1efc99f4c7b
change-id: 20251217-editconfig-d600eb4d7152

Best regards,

Signature · 1 line
Kevin Hao <[email protected]>