David Colon on 11 Feb 2011 07:35:33 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] (Free) Graphical Diff Tools


I recently discovered xxdiff and really like it. It's similar to xdiff which for the longest time was only available for Solaris. It's available in the standard Ubuntu and Debian repositories.

David

On Fri, Feb 11, 2011 at 5:50 AM, JP Vossen <jp@jpsdomain.org> wrote:
Summary: Quick run-down on 3 open-source graphical diff tools.

Why you care:

* If you already know and love 'diff', these can be easier to
read and also allow you to interactively 'patch' from one file to the
other.

* If you don't know what 'diff' is, you want to because it shows
you the differences between 2 files, for example between the config file
from the device that works and the one that doesn't. It is invaluable
for t-shooting and programming.

________________________________

I was using the 'meld' graphical 'diff' program on Linux the other day
and it occurred to me that a quick discussion of that was probably
useful. For general details on diff see:
http://en.wikipedia.org/wiki/Diff.


On Windows I use TortoiseMerge.exe from the TortoiseSVN project, but I
can't recommend it without reservations.  See it at
http://tortoisesvn.tigris.org/TortoiseMerge.html and download it from
http://sourceforge.net/projects/tortoisesvn/files/Tools/.  The problem
is that I find it much too tedious to use from the command line without
a wrapper [1], and it only allows merging from the left to the right
pane.

Probably the more common Windows tool is http://winmerge.org/ which has
vastly improved since the last time I checked it out.  I now find it
easier to run but slightly more clunky to use than TortoiseMerge.
However it does allow more flexible merging of data from either pane
into either pane and it does some syntax highlighting, which is nice.

All 3 tools also show you changes in the line itself, which is very
handy.  WinMerge will be easier to get up and running on Windows.


However, both of those pale before 'meld', which is Unix/Linux only (and
in the stock Debian, & Ubuntu repos or the CentOS/RHEL EPEL third-party
repo). See it at http://meld.sourceforge.net/; it is much cooler looking
than the two above. It does syntax highlighting too, but apparently not for *.conf files, which WinMerge handled. Interesting...

There are also a large number of other Windows GUI diff tools, many of
which are not free. I saw no point to any of them, but that was years
ago now.

Later,
JP
_________________________________________
[1] TortoiseMerge.exe wrapper for command line use:

       @echo off
       REM svndiff.cmd--Wrapper for TortoiseMerge, part of TortoiseSVN
       
       REM TortoiseMerge.exe MUST be in your %PATH%!
       rem set PATH=C:\Program Files\TortoiseSVN\bin\;%PATH%
       
       if "%3" == "" (
           start TortoiseMerge /base:"%1" /theirs:"%2"
       ) else (
           start TortoiseMerge /base:"%1" /theirs:"%2" /mine:"%3"
       )
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|      http://bashcookbook.com/
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug