Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Winmerge : how to ignore differences in lines with a special ending tag

Tags:

winmerge

I would like to ignore difference in lines, if one of the files has a line ending with //ignore is this possible? how would the regular expression for the line filter be written?

tried .*//ignore$ but this does not work

like image 363
rekna Avatar asked Nov 14 '22 15:11

rekna


1 Answers

When you launch a file compare from the Select Files or Folders dialog, after choosing the Left and Right files, click Select next to the Filter field.

In the Filters dialog, click the Linefilters tab, create the following line filter (add)

^//ignore

Enable the line filters you want to use and run your comparison.

Have fun!

like image 84
Sven Avatar answered Jan 13 '23 02:01

Sven