Diff Tools

icdiff – side-by-side coloured diff

icdiff presents differences between two files in a colourised two-column layout. Its aim is to make small changes within otherwise similar lines immediately visible without trying to replace traditional diff for every use case.

The tool is useful when a normal unified diff makes it difficult to see exactly what changed. Long lines can be wrapped or truncated, surrounding context can be adjusted, and the colour scheme can be adapted to suit the terminal.

This is free and open source software.

Key Features

  • Displays compared files side by side with word-level colour highlighting.
  • Automatically detects terminal width on supported systems or accepts an explicit column width.
  • Supports configurable input and output encodings.
  • Can exclude lines matching a regular expression from the comparison.
  • Can limit comparison to the first specified number of lines.
  • Offers optional line numbers and custom labels for each side of the comparison.
  • Can recursively compare directories.
  • Can report files that are identical as well as files containing changes.
  • Provides controls for displaying whitespace differences and configuring tab width.
  • Can truncate long lines instead of wrapping them.
  • Lets users choose the amount of surrounding context or display whole files.
  • Provides configurable colours for additions, removals, changed text, metadata and separators.
  • Integrates with Git as an external difftool and includes a git-icdiff helper.
  • Can also be used with Subversion as an external diff command.

Website: github.com/jeffkaufman/icdiff
Support:
Developer: Jeff Kaufman and many contributors
License: Python Software Foundation License Version 2

icdiff
Click for full size image

icdiff is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Terminal-Based Diff Tools
difftasticStructural diff tool that compares files based on their syntax
hunkTerminal diff viewer with syntax highlighting and side-by-side views
diff-so-fancyAttractive diffs with diff-highlight and more
deltaViewer for git and diff output
icdiffAn improved colored diff
diffoscopeIn-depth comparison of files, archives, and directories
colordiffWrapper for diff with pretty syntax highlighting
diffsitterSemantic diff tool
objdiffLocal diffing tool for decompilation project
ydiffTool to view colored, incremental diff in a version controlled workspace
diffrWord-by-word diff highlighting utility
dyffdiff tool for YAML files
WdiffWordwise implementation of diff
dwdiffdiff program that operates at the word level
diffymlCompares YAML documents by their structure
oyoStep-through diff viewer
diff2html-cliGenerate HTML diffs
biodiffTerminal-based binary diff viewer
dirdiffCompute the differences between two directories
csvdiffFast diff tool for comparing CSV files
VBinDiffVisual binary diff
riffWrapper around diff
csv-diffDiffing CSV and JSON files
xmldiffCompare XML documents
PatdiffFile diff using the Patience Diff algorithm
dead-ringerBinary diff utility
sesdiffGenerates a shortest edit script
semdiffSemantic diff tool written in Rust

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted