Re: [Codestriker-user] DBD::ODBC::st fetchrow_array failed
Brought to you by:
sits
|
From: David S. <si...@us...> - 2006-08-08 02:17:47
|
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
|