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

Jonathan Cormier <[email protected]> Mon, 1 Jun 2026 13:27:44 -0400
Newsgroups org.yoctoproject.lists.meta-arago
Message-ID <[email protected]>
Diff and patch files require trailing whitespace to denote
empty lines with no changes.

Signed-off-by: Jonathan Cormier <[email protected]>
---
 .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
-- 
2.43.0