| 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 |
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 --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
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(+)