Home
last modified time | relevance | path

Searched hist:"6 e019b001d27c4289f8e48ebc458e92410446259" (Results 1 – 1 of 1) sorted by relevance

/linux/scripts/
H A Dcleanpatch6e019b001d27c4289f8e48ebc458e92410446259 Fri Mar 16 22:45:06 CET 2007 H. Peter Anvin <hpa@zytor.com> cleanpatch: a script to clean up stealth whitespace added by a patch

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@zytor.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>