Re: [Codestriker-user] Creating subversion diffs ignoring whitespace changes
Brought to you by:
sits
From: David S. <si...@us...> - 2006-08-08 06:18:01
|
Looks like it is possible, but the command line needs to be modified further. Check out: http://www.akatombo.com/index/en/comments/ignore_whitespace_in_a_subversion_diff/ Cheers, David Moisei Rabinovich wrote: > Ohh, I assumed everybody knows that I use subversion not a CVS. > Thanks for the tip anyway, I think, know where to go now. > Even svn diff is missing this option natively, there is a way to use > 3-rd party diff that knows to ignore the white spaces. > > On 8/8/06, *David Sitsky* <si...@us... > <mailto:si...@us...>> wrote: > > Moisei Rabinovich wrote: > > well, I probably miss some important point. > > codestriker generates a diff for me by itself, i only fill start-tag, > > end-tag and module. > > where should i set the "-b" option? > > If you always want to ignore whitespace changes, you can do this by > modifying lib/Codestriker/Repository/Cvs.pm, line 124. Add the '-b' > option so that the code that used to be: > > my $pid = open3($write_stdin_fh, $read_stdout_fh, $read_stderr_fh, > $Codestriker::cvs, '-q', '-d', $self->{url}, > 'rdiff', $extra_options, '-u', > '-r', $start_tag, '-r', $end_tag, $module_name); > > Looks like: > > my $pid = open3($write_stdin_fh, $read_stdout_fh, $read_stderr_fh, > $Codestriker::cvs, '-q', '-d', $self->{url}, > 'rdiff', $extra_options, '-u', '-b', > '-r', $start_tag, '-r', $end_tag, $module_name); > > ie - the -b option has been added. > > > also I am not sure @exclude_file_types is taken into account in > this case > > It should be. The same filtering code is run, regardless of whether or > not Codestriker generated the diff text, or it was supplied by the > user. > > Cheers, > David > > > > > -- > Best Regards, > Moisei |