Merge tools that ignores $Id lines

时光怂恿深爱的人放手 提交于 2019-12-10 14:23:56

问题


I need to merge a forked project. Unfortunately, the CVS $Id lines are different so the merge tools I tried report that all the files are different (and 95% of them have only this line different)

Is there a merge tool that can be configured to ignore line comparison results based on a pattern ?

[edit] I discovered that WinMerge has line filters - setting up them correctly actually works.

Francesco


回答1:


I use meld, which can use regex filters to ignore. It has some preset ones you can select including CVS keywords. The regex it uses for that BTW is:

\$\w+(:[^\n$]+)?\$

You can get meld on any linux distro or download from here: http://meld.sourceforge.net/ I'm not sure how it's supported on windos, but I do know kdiff3 supports windows so you could give it a try there: http://kdiff3.sourceforge.net/




回答2:


well you could use cvs update -kk whick does not expand the $words.

of course this is still a problems the $log which is expanded on commits and not updates.




回答3:


CompareIT allow to use regular expression matching. I used it for automatically generated code comparison and it was very useful.



来源:https://stackoverflow.com/questions/202786/merge-tools-that-ignores-id-lines

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!