Re: [PATCH] cleanpatch: a script to clean up stealth whitespace added by a patch

From: Sam Ravnborg
Date: Fri Mar 16 2007 - 18:35:45 EST


On Fri, Mar 16, 2007 at 02:45:06PM -0700, H. Peter Anvin wrote:
> This script is a companion to the "cleanfile" script. This cleans
> up a patch in unified diff format *before* it is applied. Note that
> the empty lines at the end of file detection *requires* that the diff was
> taken with at least one line of context around each hunk, or bad things
> will happen.
>
> This script cleans up various classes of stealth whitespace. In
> particular, it cleans up:
>
> - Whitespace (spaces or tabs)before newline;
> - DOS line endings (CR before LF);
> - Space before tab (spaces are deleted or converted to tabs);
> - Empty lines at end of file.
>
> Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxx>

This and the companion "cleanfile" has been applied to kbuild.git.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/