diff mbox series

[meta-arago,oe-layersetup,v2] .editorconfig: Preserve trailing whitespace in diff and patch files

Message ID 20260601172744.1191461-1-jcormier@criticallink.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,oe-layersetup,v2] .editorconfig: Preserve trailing whitespace in diff and patch files | expand

Commit Message

Jon Cormier June 1, 2026, 5:27 p.m. UTC
Diff and patch files require trailing whitespace to denote
empty lines with no changes.

Signed-off-by: Jonathan Cormier <jcormier@criticallink.com>
---
 .editorconfig | 3 +++
 1 file changed, 3 insertions(+)

Comments

Randolph Sapp June 1, 2026, 5:52 p.m. UTC | #1
On Mon Jun 1, 2026 at 12:27 PM CDT, Jonathan Cormier wrote:
> Diff and patch files require trailing whitespace to denote
> empty lines with no changes.
>
> Signed-off-by: Jonathan Cormier <jcormier@criticallink.com>
> ---
>  .editorconfig | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/.editorconfig b/.editorconfig
> index 30740e726616..306d282c3164 100644
> --- a/.editorconfig
> +++ b/.editorconfig
> @@ -6,6 +6,9 @@ root = true
>  insert_final_newline = true
>  trim_trailing_whitespace = true
>  
> +[*.{diff,patch}]
> +trim_trailing_whitespace = false
> +
>  [*.{sh,pl,xml}]
>  indent_size = 4
>  indent_style = space

Yeah, this would be picked up for any layers that don't define their own root
editorconfig. This modification seems useful.

Reviewed-by: Randolph Sapp <rs@ti.com>
diff mbox series

Patch

diff --git a/.editorconfig b/.editorconfig
index 30740e726616..306d282c3164 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -6,6 +6,9 @@  root = true
 insert_final_newline = true
 trim_trailing_whitespace = true
 
+[*.{diff,patch}]
+trim_trailing_whitespace = false
+
 [*.{sh,pl,xml}]
 indent_size = 4
 indent_style = space