]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
.editorconfig: respect .editorconfig settings from parent directories
authorKevin Hao <haokexin@gmail.com>
Wed, 17 Dec 2025 04:23:27 +0000 (12:23 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:44:21 +0000 (19:44 -0800)
commit7c5b0f6a9ff5041ea6f4213c9827170c60a376f0
tree75d4ccfbde52ae58332879a8933b7de91eea57a6
parentb8f690f6d1d9008ffab1f58fffc769ba813da373
.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.

Link: https://lkml.kernel.org/r/20251217-editconfig-v1-1-883e6dd6dbfa@gmail.com
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Cc: Íñigo Huguet <ihuguet@redhat.com>
Cc: Danny Lin <danny@kdrag0n.dev>
Cc: Mickaël Salaün <mic@digikod.net>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
.editorconfig