LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3973/0)
Reviews (628/0)
Press Releases (464/0)
Distributions (187/0)
Software (863/0)
Hardware (522/0)
Security (192/0)
Tutorials (345/0)
Off Topic (181/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events




Easy File Comparisons With These Great Free Diff Tools

by Frazer Kline

File comparison compares the contents of computer files, finding their common contents and their differences. The result of the comparison is often known as a diff.

diff is also the name of a famous console based file comparison utility that outputs the differences between two files. The diff utility was developed in the early 1970s on the Unix operating system. diff will output the parts of the files where they are different.

Linux has many good GUI tools that enable you to clearly see the difference between two files or two versions of the same file. This roundup selects 5 of my favourite GUI diff tools, with all but one released under an open source license.

These utilities are an essential software development tool, as they visualize the differences between files or directories, merge files with differences, resolve conflicts and save output to a new file or patch, and assist file changes reviewing and comment production (e.g. approving source code changes before they get merged into a source tree). They help developers work on a file, passing it back and forth between each other. The diff tools are not only useful for showing differences in source code files; they can be used on many text-based file types as well. The visualisations make it easier to compare files.


Meld

Meld in action

Meld is an open source 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 (Bazaar, Codeville, CVS, Darcs, Fossil SCM, Git, Mercurial, Monotone, Subversion), as well as the ability to manually and automatically merge file differences.

Meld's focus is on helping developers compare and merge source files, and get a visual overview of changes in their favourite version control system.

Features include

  • Edit files in-place, and your comparison updates on-the-fly
  • Perform two- and three-way diffs and merges
  • Easily navigate between differences and conflicts
  • Visualise global and local differences with insertions, changes and conflicts marked
  • Built-in regex text filtering to ignore uninteresting differences
  • Syntax highlighting (with optional gtksourceview)
  • Compare two or three directories file-by-file, showing new, missing, and altered files
  • Directly open file comparisons of any conflicting or differing files
  • Filter out files or directories to avoid seeing spurious differences
  • Auto-merge mode and actions on change blocks help make merges easier
  • Simple file management is also available
  • Supports many version control systems, including Git, Mercurial, Bazaar and SVN
  • Launch file comparisons to check what changes were made, before you commit
  • View file versioning statuses
  • Simple version control actions are also available (i.e., commit/update/add/remove/delete files)
  • Automatically merge two files using a common ancestor
  • Mark and display the base version of all conflicting changes in the middle pane
  • Visualise and merge independent modifications of the same file
  • Lock down read-only merge bases to avoid mistakes
  • Command line interface for easy integration with existing tools, including git mergetool
  • Internationalization support
  • Visualisations make it easier to compare your files
  • Website: meldmerge.org
  • Developer: Kai Willadsen
  • License: GNU GPL v2
  • Version Number: 1.8.5

DiffMerge

DiffMerge in action

DiffMerge is an application to visually compare and merge files on Linux, Windows, and OS X.

Features include:

  • Graphically shows the changes between two files. Includes intra-line highlighting and full support for editing
  • Graphically shows the changes between 3 files. Allows automatic merging (when safe to do so) and full control over editing the resulting file
  • Performs a side-by-side comparison of 2 folders, showing which files are only present in one file or the other, as well as file pairs which are identical, equivalent or different
  • Rulesets and options provide for customized appearance and behavior
  • Unicode-based application and can import files in a wide range of character encodings
  • Cross-platform tool
  • Website: sourcegear.com/diffmerge
  • Developer: SourceGear LLC
  • License: Licensed for use free of charge (not open source)
  • Version Number: 4.2

xxdiff

xxdiff in action

xxdiff is an open source graphical file and directories comparator and merge tool.

xxdiff can be used for viewing the differences between two or three files, or two directories, and can be used to produce a merged version. The texts of the two or three files are presented side by side with their differences highlighted with colors for easy identification.

This program is an essential software development tool that can be used to visualize the differences between files or directories, merge files with differences, resolving conflicts and saving output to a new file or patch, and assist file changes reviewing and comment production (e.g. approving source code changes before they get merged into a source tree).

Features include:

  • Compare two files, three files, or two directories (shallow and recursive)
  • Horizontal diffs highlighting
  • Files can be merged interactively and resulting output visualized and saved
  • Features to assist in performing merge reviews/policing
  • Unmerge CVS conflicts in automatically merged file and display them as two files, to help resolve conflicts
  • Uses external diff program to compute differences: works with GNU diff, SGI diff and ClearCase's cleardiff, and any other diff whose output is similar to those
  • Fully customizable with a resource file
  • Look-and-feel similar to Rudy Wortel's/SGI xdiff, it is desktop agnostic
  • Features and output that ease integration with scripts
  • Website: furius.ca/xxdiff
  • Developer: Martin Blais
  • License: GNU GPL
  • Version Number: 4.0

Diffuse

Diffuse in action

Diffuse is an open source graphical tool for merging and comparing text files. Diffuse is able to compare an arbitrary number of files side-by-side and offers the ability to manually adjust line-matching and directly edit files. Diffuse can also retrieve revisions of files from bazaar, CVS, darcs, git, mercurial, monotone, Subversion and GNU Revision Control System (RCS) repositories for comparison and merging.

Features include:

  • Compare and merge an arbitrary number of files side-by-side (n-way merges)
  • Line matching can be manually corrected by the user
  • Directly edit files
  • Syntax highlighting
  • Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK support
  • Unicode support
  • Unlimited undo
  • Easy keyboard navigation

Kompare

Kompare in action

Kompare is an open source GUI front-end program that enables differences between source files to be viewed and merged. Kompare can be used to compare differences on files or the contents of folders. Kompare supports a variety of diff formats and provide many options to customize the information level displayed.

Whether you are a developer comparing source code, or you just want to see the difference between that research paper draft and the final document, Kompare is a useful tool.

Kompare is part of the KDE desktop environment.

Features include:

  • Compare two text files
  • Recursively compare directories
  • View patches generated by diff
  • Merge a patch into an existing directory
  • Entertain you during that boring compile


Last Updated Saturday, June 28 2014 @ 06:59 PM EDT


We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, Forth, SQL, Node.js (new), Fortran (new), Erlang (new), Pascal (new), and Ada (new).


Group Tests
All Group Tests

Top Free Software
6 Office Suites
7 Document Processors
6 Lean Desktops
6 Desktop Search
9 Project Management
9 Groupware Apps
14 File Managers
10 Databases
21 Backup Tools
21 DVD Tools
21 Window Managers
21 Productivity Tools
9 Terminal Emulators
21 Financial Tools
21 Text Editors
21 Video Emulators
21 Home Emulators
42 Graphics Apps
6 CAD Apps
42 Scientific Apps
10 Web Browsers
42 Email Apps
12 Instant Messaging
10 IRC Clients
7 Twitter Clients
12 News Aggregators
11 VoIP Apps
11 Remote Display Apps
42 Best Games
42 More Games
21 More Games
21 Notable Games (1)
21 Notable Games (2)
21 Notable Games (3)
8 ASCII Games
9 Educational Games
42 Audio Apps
42 Video Apps
6 Screencasting Apps
80 Security Apps
9 System Monitoring
6 Family History Apps
11 PDF Tools
6 Music Servers
6 Collection Managers
7 Calculator Apps
8 Geometry Apps
Free Console Apps
14 Multimedia
Programming
8 Compilers
9 IDEs
9 Debuggers
7 Revision Control Apps
6 Doc Generators
'Free' Proprietary
21 Closed-Source Apps
Top Commercial Apps
42 Games
Free Web Software
21 Web CMS
14 Wiki Engines
8 Blog Apps
6 eCommerce Apps
5 Human Resource Apps
10 ERP
10 CRM
6 Data Warehouse Apps
8 Business Intelligence
6 Point-of-Sale

All Group Tests

Other Articles
Migrating from Windows
Back up your data
Distribution Guide
Distro Portal Pages
20 Free Linux Books
Running Linux Under Windows


Older Stories
Thursday 05/01
  • 5 Best Free Node.js Introductory Books (0)

  • Sunday 04/27
  • Tools to Empower Librarians (0)

  • Saturday 04/19
  • Create Vector Graphics with Open Source Software (0)
  • Manage your Business with a Complete Software Solution (0)

  • Sunday 04/06
  • Free to Play Linux Games on Steam (0)
  • Increasing Lab Efficiency with an Open Source LIMS (0)
  • Keep a Watchful Eye with these Console Based Process Viewers (0)

  • Saturday 03/15
  • Focus on Your Writing by Using Markdown Editors (0)

  • Sunday 03/09
  • Experience Home Computers that Missed the Big Time (0)

  • Monday 03/03
  • Molly: Children of the Universe (0)


  • Vote

    What do you find MOST attractive about Open Source software?

    Amount of customization
    Security
    Freedom provided
    Speed of development
    Quality
    Multiple versions
    Cost
    Potential to contribute
    Ability to modify code
    Results
    4761 votes | 2 comments

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved