Messages in this thread | | | Date | Thu, 3 Feb 2011 13:35:56 +0300 | From | Dan Carpenter <> | Subject | Re: rename_rev.pl script for reviewing renames |
| |
On Thu, Feb 03, 2011 at 11:22:19AM +0100, Wolfram Sang wrote: > > # white space at the end of lines > > $line =~ s/ *$//g; > > $line =~ s/\t*$//g; > > Character class here as well? Will also get mixtures of the two. >
Actually it's better to let diff to take care of white space probably. I changed the diff at the end to "diff -uw" and it seems to work beautifully.
regards, dan carpenter
| |