Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convincing meld to ignore specific lines of code?

I'm using Meld to spot differences between two similar sets of fortran code. In many cases, the only difference between the two files is an automated version number. This line makes it look like there are more differences than there should be, and it gets confusing.

The automated version number line in question is something like

 !! $Id: filename.F90 v#### YYYY-MM-DD HH:MM:SSx username $  

Is it possible to convince meld to ignore all lines that look like this line? I don't want meld to ignore all comments, as some differences in comments are important.

like image 261
Lee Avatar asked Oct 02 '22 05:10

Lee


1 Answers

Beware the filter named "All whitespace"

If your regular expression includes a space, e.g. "!! \$Id*" and your expression is after the "All whitespace", then it will never match because all whitespace has already been removed.

To solve this, move your expression before the "All whitespace", expression.

I add this answer because the above comments were correct but did not solve my variation of the problem.

enter image description here

like image 169
AnthonyVO Avatar answered Oct 13 '22 10:10

AnthonyVO