Good diff tools under Ubuntu GNOME

Meld is an actively-developed, open-source GUI-based diff utility targeted at developers. It is free It runs on Linux GNU License 40+ posts tagged as meld on Stack Overflow. Actively developed through February 2013 (the time of this posting) Allows two and three way comparison between files and folders Supports Subversion, Git, and Mercurial

Using the output of diff to create the patch

I believe that diff -u oldfile newfile > a.patch is used to create patch files, although some other switched may be thrown in as well (-N?). Edit: OK, 4 years later and finally going to explain what the switches mean: -u creates a Unified diff. Unified diffs are the kind of diffs that the patch … Read more

Any way to use a custom diff tool with cleartool/clearcase?

How to change default diff tools You can specify an external diff tool by modifying the file map, in “c:\program files\rational\ClearCase\lib\mgrs” The WinMerge suggested by Paul actually modifies that file. Each map line has 3 parts: the CC filetype, the CC action, and the application. Find the section in the map file for text_file_delta file … Read more

Examples of different results produced by the standard (Myers), minimal, patience and histogram diff algorithms

I think there are multiple algorithms supported because none of the algorithms are clearly the best choice in all cases. The differences are in readability of the patch output and processing time needed to generate the patch. Summarizing, this is what I understand the differences are: Myers: The original algorithm as implemented in xdiff (http://www.xmailserver.org/xdiff-lib.html … Read more

How can I diff 2 files while ignoring leading white space

diff has some options that can be useful to you: -E, –ignore-tab-expansion ignore changes due to tab expansion -Z, –ignore-trailing-space ignore white space at line end -b, –ignore-space-change ignore changes in the amount of white space -w, –ignore-all-space ignore all white space -B, –ignore-blank-lines ignore changes whose lines are all blank So diff -w old … Read more