In patches, an empty context line translate to a patch line "+ ". Some tools consider the space ending the line an error, remove it and technically corrupt the patch. We could add a check in patchtest to error on such patches. Counterpoint: GNU patch (and most the patch tools I could find) handle this case gracefully and silently. Related: 9876 – patchtest-oe: check that attached SW patches does not contain trailing spaces https://bugzilla.yoctoproject.org/show_bug.cgi?id=9876
Created attachment 5208 [details] Vibe-coded (Gemini) PoC script to check patch missing white space in context (It does work) Added my vibe-coded (Gemini) PoC script to check patch missing white spaces in context. It does work.