On Nov 25, 2009, Daniel Jacobowitz <d...@false.org> wrote: > On Wed, Nov 25, 2009 at 08:31:27PM +0100, Richard Guenther wrote: >> And patch doesn't have an option to ignore whitespace changes.
> Sure it does. -l (for loose, or --ignore-whitespace). > QUILT_PATCH_OPTS for quilt. And even without this, given that the patch under discussion was mechanical, it ought to be possible to change all other patches just as mechanically. sed -i 's,[ \t]*$,,' probably won't work, if there are all-blanks lines being left alone in the patch (so the rx will match the patch markers too), but something slightly more elaborate preserving a fixed number of leading blanks dependng on the patch type (context or unified) should: context diffs: /../{s,^..,&:,;s,[ \t]*$,,;s,^\(..\):,\1,;} unified diffs: /./ {s,^.,&:,; s,[ \t]*$,,;s,^\(.\):,\1,; } -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer