Use a different diff command with CVS?

Scottie T picture Scottie T · Mar 10, 2009 · Viewed 9.6k times · Source

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.

Answer

Sally picture Sally · Mar 20, 2009

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

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)