tags: Helpful Tools
posted: Sunday, September 17th, 2006
This weekend, I had a situation, due to a laptop hard drive failure, where I had two very large directories full of files and subdirectories. Each was a copy of the same directory, but one had my last 4 days of coding in it and the other didn’t. The trick was to find the files I had changed over the course of my last few days of development so I could get them back into the other directory, and then into my source countrol.
So I searched the Internet to see if there was a tool to help me determine the difference in all the files in my directories. I use both Windows and Linux, so I hoped, against the odds that I could find a tool that worked on both.
Thankfully, I found just the tool: KDiff3. I downloaded KDiff3, installed it, and started it up. When the app loads, a small window launches, which lets you select a File or a Directory for the base and for the comparison against the base. You then click ok, and within a few seconds have a list of all differences within the subdirectories. It flags the files that are different and then shows you the differences within the files. You can merge files, choose one or the other side to overwrite, etc. You can also do a three way comparison with three sources.
I was able to use this tool to get my folders in sync and save all my changes. What I thought would be a several hour process was finished in minutes thanks to KDiff3. There are a lot of configuration options that I haven’t tried yet. It looks to be full of features for file and directory comparision and merging.
I highly recommend this tool, and I’ve tried it on Windows XP and Suse 10.0. You can visit the KDiff homepage for more information.
Comments (10)
Leave a Comment
I use this tool at work, and it is excellent.
This tool is excelent. I use it everyday, for my SVN and CVS commits.
I used to use Windiff for this kind of thing in Windows, and had to do a big comparison of my mp3 branch (30G) which may have been corrupted on another hard drive. Well, it’s FAST too, data seems to stream from both devices near-simultaneously so its not reading lumps in turn from each device like Windiff.
Excellent - highly recommended!
Was looking for a Mac OS X diff tool. While compiling meld (2 hours and yet unfinished!) I found KDiff3m downloaded and played with it. Looks just what I wanted.
Kudos for providing binaries!
Does a great job on character comparisons within the lines highlighting the changes exactly.
A great tool, a must have!
The above links have been helpful.
Thanks for the useful information.
KDiff3m is excelent tool
I highly recommend using a version control tool as well as kdiff3, eg subversion or cvs
I’ve been using WinMerge. Excellent tool. I will look into SubVersion to maintain my website code.
I forgot to mention that a nice feature of WinMerge is it is available in the Context Menu. This means you can select two files in Windows file manager and right click to compare them. Or if one file is in one folder, you select it then browse to the other file in another folder and right click to compare them.
RSS feed for comments on this post. TrackBack
I didn’t realize this tool could do directory comparisons and had been ported to Windows as well! I’m off to download it now.