[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6bffcb0e0701221354j341e9f07s761c6c049d7196ce@mail.gmail.com>
Date: Mon, 22 Jan 2007 22:54:35 +0100
From: "Michal Piotrowski" <michal.k.k.piotrowski@...il.com>
To: "Ingo Molnar" <mingo@...e.hu>
Cc: "Noah Watkins" <nwatkins@...c.ku.edu>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -rt] whitespace cleanup for 2.6.20-rc5-rt7
On 22/01/07, Ingo Molnar <mingo@...e.hu> wrote:
>
> * Noah Watkins <nwatkins@...c.ku.edu> wrote:
>
> > fixes trailing whitespace and spaces before tab indents in
> > 2.6.20-rc5-rt7 as reported with: git-apply --whitespace=error-all
>
> thanks. Did you do the patch manually, or do you have a script for that
> perhaps?
>
How about this script?
"d) Ensure that your patch does not add new trailing whitespace. The below
script will fix up your patch by stripping off such whitespace.
#!/bin/sh
strip1()
{
TMP=$(mktemp /tmp/XXXXXX)
cp "$1" "$TMP"
sed -e '/^+/s/[ ]*$//' <"$TMP" >"$1"
rm "$TMP"
}
for i in "$@"
do
strip1 "$i"
done
"
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
Regards,
Michal
--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists