Settings

Theme

Ask HN: Alternative to svn diff?

2 points by symbiotic 16 years ago · 5 comments · 1 min read


Often I need to work on a remote machine via ssh for work. I have no problem using svn on the command line other than when I need to diff two revisions of a file.

I find the output hard to read and sometimes it just tells me that the entire old file was removed, and the entire new file was added, really giving me no information about what was actually changed.

It would be great if there was some command line tool that would give me a little bit nicer output (something that's easier to read than the traditional pluses and minuses).

Has anyone else encountered this problem and/or found a good solution?

apgwoz 16 years ago

How about some visual diff tools? It depends on the platform, but there are some really nice ones out there. If you're using Linux, try out meld. This guy has a nice little script for diffing SVN stuff: http://www.toolsforteams.com/roller/blog/entry/svn_diff_with...

For Windows, I hear Beyond Compare is great, though I don't know if it has SVN integration...

For Mac, maybe http://www.versionsapp.com/ does what you need?

nuclear_eclipse 16 years ago

I personally like to use vimdiff when viewing changes. A quick google shows some easy to follow instructions for setting it up:

http://blog.tplus1.com/index.php/2007/08/29/how-to-use-vimdi...

  • symbioticOP 16 years ago

    This looks promising. Unfortunately I can't use any GUI tools because the server doesn't have a GUI installed.

IgorPartola 16 years ago

Take a look at

  svn help diff
Specifically, you can pass arguments down to diff itself.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection