6

I'm using Meld to compare two directories of source code on Ubuntu.

However, because all of the files in one of the directories have been 'touched' so that all of their timestamps were updated, Meld is showing them as different, even though the contents of the files have not changed. But I'm only trying to find files that have different content. I don't see an option to get Meld just to look at changed contents. Any ideas for how to do this in Meld or is there a better GUI directory comparison tool for Ubuntu?

4 Answers4

3

The display appears different for files that have different timestamps to those that have really changed

Quoted from debian mailing list

The current behaviour of meld is such that, a small red dot is used in the right hand bottom corner of the icon for a file with newer timestamp even if the files being compared are identical. If the files are different, then both files are shown as red with a thick red dot in the newer-timestamp file.

I use Meld and I think it is the best graphical diff program.

Maybe Kompare will do what you want.

1

In recent versions of Meld (tested on 3.20.4) unticking Compare files based only on size and timestamp (under Preferences > Folder Comparisons > Shallow Comparison) seems to have the effect of ignoring file timestamps and instead looking only at the content.

Whereas in older Meld versions (e.g. 1.8) with this unticked it still looked at timestamps (as well as contents).

For me upgrading Meld and ensuring that option was unticked was sufficient to make directory comparison useful again - i.e. it now ignores timestamp differences and only shows me files whose contents differ.

sparrowt
  • 2,711
1

A good alternative is KDiff3 – it has an option to choose a method to compare files.

slhck
  • 235,242
0

In the top menu Meld now has a toggle on the "Same" file, so you can turn off unwanted files. Further for directories that contain hundreds or thousands of files, for example libraries, select the directory and "Hide".