chillibear.com

OSX FileMerge

Just found the FileMerge tool in with the developer tools (in /Developer/Applications/Utilties if you’ve got the Developer Tools installed - free download from Apple after you’re registered). It’s a rather nice GUI version of the diff command line tool for comparing the differences between two files, but critically it does this rather sweet line scrolling thing where it keeps the two side by side documents lined up even when passing the differences - it makes it really clear and easy to see the changes.

You can use it to merge (as you may have guessed from the name) the files and save that merger as a new file (overwriting one of the two you’re comparing if you want). It takes a moment to “get” the merging, you choose an action and select the copy you want to preserve i.

e. you choose the left or right version and that’s what the arrow indicates, it doesn’t mean ”I’m going to copy these changes from this document to that document”.

It will also do directories, not really looked at that properly yet. In the past I’ve always used diff thus to compare two directories:

diff -rq /first/directory /second/directory

Written on 27 Mar 2010 and categorised in Macintosh and NIX, tagged as diff, filemerge, and compare

Home, Post archive

site copyright Eric Freeman

Valid XHTML 1.0 Strict