Re: [meta-arago][oe-layersetup][PATCH v2] .editorconfig: Preserve trailing whitespace in diff and patch files
Randolph Sapp <[email protected]> Mon, 1 Jun 2026 12:52:44 -0500
| Newsgroups | org.yoctoproject.lists.meta-arago |
|---|---|
| Message-ID | <[email protected]> |
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 <[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 =3D true > insert_final_newline =3D true > trim_trailing_whitespace =3D true > =20 > +[*.{diff,patch}] > +trim_trailing_whitespace =3D false > + > [*.{sh,pl,xml}] > indent_size =3D 4 > indent_style =3D space Yeah, this would be picked up for any layers that don't define their own ro= ot editorconfig. This modification seems useful. Reviewed-by: Randolph Sapp <[email protected]>