Linux Commands Examples

A great documentation place for Linux commands

meld

Visual diff and merge tool for the GNOME Desktop

Synopsis

meld [options]
meld
[options] FILE1
meld
[options] DIR1
meld
[options] FILE1 FILE2 [FILE3]
meld
[options] DIR1 DIR2 [DIR3]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0

meld

Run meld without initiating a diff.

meld FILE1

Initiate a diff between FILE1 and the version-controlled copy of FILE1.

meld DIR1

Initiate a recursive diff between DIR1 and the version-controlled copy of DIR1.

meld FILE1 FILE2

Initiate a diff between FILE1 and FILE2.

meld FILE1 FILE2 FILE3

Initiate a 3-way diff between FILE1, FILE2, and FILE3.

meld DIR1 DIR2

Initiate a recursive diff between directory DIR1 and DIR2.

meld DIR1 DIR2 DIR3

Initiate a recursive 3-way diff between directory DIR1, DIR2, and DIR3.

meld --diff FILE1 FILE2 --diff FILE3 FILE4

Initiate a diff between FILE1 and FILE2, and a separate diff between FILE3 and FILE4.


0
source
            
meld $2 $5
0
source

diff and patch tool

Although I've never used Meld, I have a feeling it's actually using 'diff' under the covers. The way I've always generated patch files is simple:

$ diff -ruN ${dir1} ${dir2} > ${patchfile}.patch

That generates a single large patch file, which you can then break up as apporpriate. To generate individual patch files for each change found, you would simply run that large file through a script that split when it saw a new changeset (a script I don't have handy or know of, since I've never used one like it).

0
source

How do I turn on line numbering in Meld diff viewer?

Just believe it needs other dependencies, I saw them on Meld homepage but they are optional. On Fedora, try this

yum install gtksourceview
yum install gnome-python2-gtksourceview
yum install gnome-python2-gnomeprint 

description

Meld is a graphical diff viewer and merge application for the Gnome desktop. It supports 2 and 3-file diffs, recursive directory diffs, diffing of directories under version control (Arch, Bazaar, Codeville, CVS, Darcs, Git, Mercurial, Monotone, RCS), as well as the ability to manually and automatically merge file differences.

options

--auto-compare, -a

Automatically compare all differing files on startup.

--diff FILE1|DIR1 FILE2|DIR2 [FILE3|DIR3]

Create a diff tab for the given files or directories. Note that "meld --diff FILE1 FILE2" is functionally equivalent to "meld FILE1 FILE2". However, the --diff argument can be given multiple times for one invocation of meld which allows the user to automatically initiate multiple diffs when meld starts. See examples below.

--help, -h

Print application help and usage.

--LABEL=<label>, -L <label>

Set application window title to <label>.

--version

Print application version and exit.


bugs

If you find a bug, please report it at https://bugzilla.gnome.org/buglist.cgi?product=meld or mail a description of the issue to meld-list[:at:]gnome[:dot:]org.


authors

See the AUTHORS text file in meld’s source code (http://git.gnome.org/browse/meld/tree/AUTHORS).

How can this site be more helpful to YOU ?


give  feedback