>>>> John Lamb writes:
I'm looking for an editor/viewer that can show
two files side by side with
differences. Any suggestions?
There seems to be one embedded in cervisia and I
recall something called
vdiff that was available on solaris a few years back.
emacs has this. I've run Ediff on current emacs -- it is very nice.
From the emacs/ediff docs:
Ediff provides a convenient way for simultaneous browsing through
the differences between a pair (or a triple) of files or buffers (which
are called `variants' for our purposes). The files being compared,
file-A, file-B, and file-C (if applicable) are shown in separate
windows (side by side, one above the another, or in separate frames),
and the differences are highlighted as you step through them. You can
also copy difference regions from one buffer to another (and recover
old differences if you change your mind).
Another powerful feature is the ability to merge a pair of files
into a third buffer. Merging with an ancestor file is also supported.
Furthermore, Ediff is equipped with directory-level capabilities that
allow the user to conveniently launch browsing or merging sessions on
groups of files in two (or three) different directories.
In addition, Ediff can apply a patch to a file and then let you step
though both files, the patched and the original one, simultaneously,
difference-by-difference. You can even apply a patch right out of a
mail buffer, i.e., patches received by mail don't even have to be
saved. Since Ediff lets you copy differences between variants, you
can, in effect, apply patches selectively (i.e., you can copy a
difference region from `file.orig' to `file', thereby undoing any
particular patch that you don't like).
Ediff even understands multi-file patches and can apply them
interactively! (Ediff can recognize multi-file patches only if they
are in the context format or GNU unified format. All other patches are
treated as 1-file patches. Ediff is [hopefully] using the same
algorithm as `patch' to determine which files need to be patched.)
Quentin Fennessy Quentin.Fennessy(a)amd.com