It seems that it would be extremely handy to be able to filter a diff so that trivial changes are not displayed. I would like to write a regular expression which would be ru
I use an approach that combines git diff
and applying a regular expression matching on the results. In some testing code (PERL), I know that testing is successful when the OutputFingerprint
stored in the resulting files of the tests has not changed.
First, I do a
my $matches = `git diff -- mytestfile`
and then evaluate the result:
if($matches =~ /OutputFingerprint/){
fail();
return 1;
}else{
ok();
return 0;
}