Use a different diff command with CVS?

筅森魡賤 提交于 2019-11-28 00:39:53

问题


Is it possible to use a different diff program with CVS? I'd like to use something like meld to give me a side-by-side graphical view of the repository and my changes. It's out of my control to use a different CMS. What would be ideal is some undocumented command line argument that would work like this:

cvs diff -prog /usr/bin/meld foo.cc

This would give me a diff of my checked out, modified version of foo.cc with the repository version, but using the diff program meld.

I realize an undocumented command line argument is unlikely, so if you have to hack it together, that works for me.


回答1:


I use tkcvs and tkdiff (not the lastest version either)

  • http://www.twobarleycorns.net/tkcvs.html
  • http://tkdiff.sourceforge.net/
  • http://wiki.tcl.tk/3773

the cool thing is that tkcvs also supports subversion.

tkdiff works on the command line and takes cvs tags...

  • tkdiff -rfoo_v5_0 -rfoo_v6_5 silly.c (compare two different versions than the one in your local directory)
  • tkdiff spring.h (compare my local version to the repository)
  • tkdiff -r1.6 happy.c (compare my local version to a specific repository version)



回答2:


If you use WinCVS, you can setup a Diff application such as WinMerge in the preferences.

In WinCVS preferences, tab WinCVS, "External diff program"




回答3:


I finally found the cvsmenu plugin for Vim. It works like a charm for me.




回答4:


Meld supports this natively. See "Working Copy" screenshot from meld.sourceforge.net



来源:https://stackoverflow.com/questions/631781/use-a-different-diff-command-with-cvs

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