← All repos

patdiff

File Diff using the Patience Diff algorithm. https://opensource.janestreet.com/patdiff/

Browse cluster: OCaml incremental computation and PPX tooling
236commits
13contributors
7languages

Tech stack & purpose

Patdiff is an OCaml implementation of Bram Cohen's patience diff algorithm designed for comparing files and directories with enhanced output formatting and word-level refinement. Built and maintained by Jane Street, it outputs results in plain ASCII, ANSI color codes, or HTML, and offers optional semantic diffing of numbers and extensively configurable output options including markers, colors, and context settings. The project is written in OCaml using the Core library and can be installed via opam or compiled from source, with an included git wrapper for integration as an external diff tool.

Community & reference links

Languages

OCaml
96.1%
Raku
2.2%
Roff
1.0%
Shell
0.4%
Standard ML
0.3%
Makefile
0.0%
Dune
0.0%

Contributors