Skip to main content

Module diffalgo

Module diffalgo 

Source
Expand description

Selectable line-diff algorithms. libgit2 has no histogram, so we run Histogram and Structural through imara-diff.

Structs§

DiffSettings
One value for every backend we open, so the review’s backend and the workers’ never drift apart.

Enums§

DiffAlgorithm

Functions§

histogram_hunks
Histogram hunks of old vs new, merged the way git merges nearby hunks. We seed ids like crate::git so staging finds the hunk it shows.