editorconfig: Trailing spaces are meaningful in patches

My editor (nvim) started to automatically source .editorconfig.
This new feature broke my git workflow when I edit my staging changes
(yes, I edit patches and they still apply).

It took me a bit of time to understand my editor striped the trailing space
(which are meaningful patches) because of .editorconfig.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
This commit is contained in:
Jérôme Pouiller
2025-10-17 10:59:00 +02:00
committed by Johan Hedberg
parent ce08f16a05
commit fc4d7b25fd

View File

@@ -86,6 +86,10 @@ indent_size = 8
[COMMIT_EDITMSG] [COMMIT_EDITMSG]
max_line_length = 75 max_line_length = 75
# Patches
[{*.patch,*.diff}]
trim_trailing_whitespace = false
# Kconfig # Kconfig
[Kconfig*] [Kconfig*]
indent_style = tab indent_style = tab