diff --git a/.editorconfig b/.editorconfig index 969e613536b..7b40ff1ff56 100644 --- a/.editorconfig +++ b/.editorconfig @@ -22,3 +22,7 @@ indent_size = 2 [*.{sh,py,pl}] indent_style = space indent_size = 4 + +# Match diffs, avoid to trim trailing whitespace +[*.{diff,patch}] +trim_trailing_whitespace = false