Skip to content
Fossil Update of ”checkin/1a2098f1f2d8d52a901cd53a70a9d388960ec7498bd5ddd4b25ab4cead3c69da”
Login

Update of ”checkin/1a2098f1f2d8d52a901cd53a70a9d388960ec7498bd5ddd4b25ab4cead3c69da”

Overview

Artifact ID: 49aa4e8f7d3467167ac5dc8bafb8ded0a1f60d2430bf292898198442751f7db4
Page Name:checkin/1a2098f1f2d8d52a901cd53a70a9d388960ec7498bd5ddd4b25ab4cead3c69da
Date: 2026-11-30 15:31:05
Original User: drh
Mimetype:text/x-markdown
Content

Side-by-side diff: prototype enhancements

Experimental changes for A/B comparison of difficult side-by-side diff output.

A/B switch

FOSSIL_DIFF_PROTO, read as hex, default (unset) = all on = 7:

FOSSIL_DIFF_PROTO=0 disables all.

Heuristics

oneLineChange() now calls lineChangesEx() instead of textLineChanges() directly; lineChangesEx() tries the token algorithm, falls back to the byte algorithm, merges small gaps, then trims spans. The common-ratio gate (heuristic 4) still runs on its result.

Notes