.editorconfig: remove trim_trailing_whitespace option
PATCH v2 1/1 .editorconfig: remove trim_trailing_whitespace option
Some editors (like the vim variants), when seeing "trim_whitespace" decide to do just that for all of the whitespace in the file you are saving, even if it is not on a line that you have modified. This plays havoc with diffs and is NOT something that should be intended.
As the "only trim whitespace on modified files" is not part of the editorconfig standard yet, just delete these lines from the .editorconfig file so that we don't end up with diffs that are automatically rejected by maintainers for containing things they shouldn't.
---
v2: - only remove the lines, don't move the whole file to Documentation
- add Fixes: tag
.editorconfig | 3 --- 1 file changed, 3 deletions(-)
.editorconfig +0 -3
@@ -5,7 +5,6 @@ root = true [{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}] charset = utf-8 end_of_line = lf -trim_trailing_whitespace = true insert_final_newline = true indent_style = tab indent_size = 8
@@ -13,7 +12,6 @@ indent_size = 8 [*.{json,py,rs}] charset = utf-8 end_of_line = lf -trim_trailing_whitespace = true insert_final_newline = true indent_style = space indent_size = 4
@@ -26,7 +24,6 @@ indent_size = 8 [*.yaml] charset = utf-8 end_of_line = lf -trim_trailing_whitespace = unset insert_final_newline = true indent_style = space indent_size = 2
Signature · 1 line
2.45.2
Quoted 11 lines · Greg Kroah-Hartman
Some editors (like the vim variants), when seeing "
trim_whitespace" decide to do just that for all of the whitespace in the file you are saving, even if it is not on a line that you have modified. This plays havoc with diffs and is NOT something that should be intended.As the "only trim whitespace on modified files" is not part of the editorconfig standard yet, just delete these lines from the .editorconfig file so that we don't end up with diffs that are automatically rejected by maintainers for containing things they shouldn't.
Quoted 7 lines
Cc Danny Lin <[email protected]>Cc Íñigo Huguet <[email protected]>Cc Mickaël Salaün <[email protected]>Cc Vincent Mailhol <[email protected]>Cc Masahiro Yamada <[email protected]>Fixes 5a602de99797 ("Add .editorconfig file for basic formatting")Signed-off-by Greg Kroah-Hartman <[email protected]>
Thanks, this v2 is way better!
Quoted 39 lines
---
v2: - only remove the lines, don't move the whole file to Documentation
- add Fixes: tag.editorconfig | 3 --- 1 file changed, 3 deletions(-).editorconfig +0
-4@@ -5,7 +5,6 @@ root = true [{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}] charset = utf-8 end_of_line = lf -trim_trailing_whitespace = true insert_final_newline = true indent_style = tab indent_size = 8@@ -13,7 +12,6 @@ indent_size = 8 [*.{json,py,rs}] charset = utf-8 end_of_line = lf -trim_trailing_whitespace = true insert_final_newline = true indent_style = space indent_size = 4@@ -26,7 +24,6 @@ indent_size = 8 [*.yaml] charset = utf-8 end_of_line = lf -trim_trailing_whitespace = unset insert_final_newline = true indent_style = space indent_size = 2 --2.45.2
Quoted 6 lines · Greg Kroah-Hartman
Some editors (like the vim variants), when seeing "
trim_whitespace" decide to do just that for all of the whitespace in the file you are saving, even if it is not on a line that you have modified. This plays havoc with diffs and is NOT something that should be intended.As the "only trim whitespace on modified files" is not part of the
Do you mean s/files/lines/?
BR,
Jani.
Quoted 4 lines
editorconfig standard yet, just delete these lines from the .editorconfig file so that we don't end up with diffs that are automatically rejected by maintainers for containing things they shouldn't.
Signature · 1 line
Jani Nikula, Intel
Quoted 9 lines · Jani Nikula
Quoted 6 lines · Greg Kroah-Hartman
Some editors (like the vim variants), when seeing "
trim_whitespace" decide to do just that for all of the whitespace in the file you are saving, even if it is not on a line that you have modified. This plays havoc with diffs and is NOT something that should be intended.As the "only trim whitespace on modified files" is not part of the
Do you mean s/files/lines/?
Yes. I'll edit this when I commit it as it's driving me crazy already and I think it needs to get to Linus "soon" before we start to see lots of busted patches sent to maintainers...
thanks,
greg k-h