Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » External CVS Diff
External CVS Diff [message #683284] Mon, 13 June 2011 12:48 Go to next message
Fat Bear Incorporated is currently offline Fat Bear IncorporatedFriend
Messages: 5
Registered: July 2010
Location: Raleigh, NC
Junior Member
I want to use Vim diff for CVS diffing. Why? Mostly because I can work much faster in Vim with my many custom functions than in any mouse-intensive editor. But, the motivation really isn't the important thing and, please, let's just focus on the "how" and not the "why". Smile

Has anyone figured out how to invoke an external diff tool that compares (at least) the edited version of the file against the head version in CVS?


Steve Amerige, Fat Bear Incorporated
Web Engineering | Graphic Design | Creative Marketing
Website, Java, and Source-Code Hosting

http://www.fatbear.com/logo.png
Re: External CVS Diff [message #683475 is a reply to message #683284] Mon, 13 June 2011 20:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If you know how to issue the command line to get the compare you want, you can then create an External Launch config to execute that command line. When creating the external launch config, you have the option of using eclipse variables as arguments which should let you pick the file.

PW


Re: External CVS Diff [message #683509 is a reply to message #683475] Mon, 13 June 2011 22:18 Go to previous messageGo to next message
Fat Bear Incorporated is currently offline Fat Bear IncorporatedFriend
Messages: 5
Registered: July 2010
Location: Raleigh, NC
Junior Member
Thanks for the feedback.

As workarounds for "missing" functionality goes, I'm currently using the BeyondCVS Eclipse plugin. This plugin allows one to invoke a diff tool directly from the Eclipse GUI with just one mouse click. Of course, they're hoping it will be their diff tool. But, you can use the update site to install only the external diff tool launcher and never need to install their diff tool. I point it to a bat file that is nothing more than "gvim -d %1 %2".

The External Launch config suffers from multiple mouse motions needed to do something. And, there is no apparent way to assign keyboard shortcuts to the various external tools that I'd like to launch. That's a pet peeve of mine. Why not allow us to map shortcuts?!

Anyway, the web page is beyondcvs.sourceforge.net for those who are looking for the same workaround that I'm presently using. The instructions show the update site.

But, I'd still prefer Eclipse to adopt a more "open" philosophy and allow people to choose their own diff software, just like they can presently do with opening files.


Steve Amerige, Fat Bear Incorporated
Web Engineering | Graphic Design | Creative Marketing
Website, Java, and Source-Code Hosting

http://www.fatbear.com/logo.png
Re: External CVS Diff [message #683813 is a reply to message #683509] Tue, 14 June 2011 13:19 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Someone that wants "pluggable external diff viewer" (like you Smile has to write it, if they want that to be pluggable.

However, with a small plugin of your own, you could bind shortcuts to specific external launch configurations and alleviate some of your immediate pain.


See http://stackoverflow.com/questions/6015510/eclipse-put-keyboard-shortcuts-on-specific-launch-configurations/6017274#6017274

PW


Re: External CVS Diff [message #685330 is a reply to message #683813] Fri, 17 June 2011 09:33 Go to previous message
Tomasz Zarna is currently offline Tomasz ZarnaFriend
Messages: 172
Registered: July 2009
Senior Member
See also bug 62633.
Previous Topic:Finish button will not work when creating new class
Next Topic:Problem with Actions and Perspective
Goto Forum:
  


Current Time: Tue Apr 23 13:14:12 GMT 2024

Powered by FUDForum. Page generated in 0.03439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top