Skip to content

Commit 116b1f6

Browse files
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 <[email protected]>
1 parent 9c5325d commit 116b1f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ indent_size = 8
8686
[COMMIT_EDITMSG]
8787
max_line_length = 75
8888

89+
# Patches
90+
[{*.patch,*.diff}]
91+
trim_trailing_whitespace = false
92+
8993
# Kconfig
9094
[Kconfig*]
9195
indent_style = tab

0 commit comments

Comments
 (0)