Diff Tools

Patdiff – file diff using the Patience Diff algorithm

Patdiff is a command-line diff utility written in OCaml that implements Bram Cohen’s patience diff algorithm.

It is intended to make comparisons easier to read when working with source code and configuration files, with a strong focus on developer-friendly output and flexible command-line usage.

This is free and open source software.

Key Features

  • Provides word-level refinement to make changes easier to inspect.
  • Supports plain ASCII, ANSI colour codes, and HTML output.
  • Offers optional semantic diffing of numbers.
  • Can recursively diff directories.
  • Includes configurable output for markers, colours, location format, and context.
  • Supports whitespace-aware diffing.
  • Can read diff-like text from standard input when no file arguments are supplied.
  • Includes a wrapper for use as Git’s external diff tool.

Website: github.com/janestreet/patdiff
Support:
Developer: Jane Street
License: MIT License

Patdiff

Patdiff is written in OCaml. Learn OCaml with our recommended free books and free tutorials.


Related Software

Terminal-Based Diff Tools
difftasticStructural diff tool that compares files based on their syntax
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
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
diff2html-cliGenerate HTML diffs
dirdiffCompute the differences between two directories
csv-diffDiffing CSV and JSON files
csvdiffFast diff tool for comparing CSV files
sesdiffGenerates a shortest edit script

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments