lkml.org 
[lkml]   [2011]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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


\
 
 \ /
  Last update: 2011-02-03 11:39    [W:0.063 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site