package patience_diff
Module Patience_diff.Hunk
In diff terms, a hunk is a unit of consecutive ranges with some Same context before and after Next, Prev, and Replace ranges. Each hunk contains information about the original arrays, specifically the starting indexes and the number of elements in both arrays to which the hunk refers.
Furthermore, a diff is essentially a list of hunks. The simplest case is a diff with infinite context, consisting of exactly one hunk.
type 'a t = {prev_start : int;prev_size : int;next_start : int;next_size : int;ranges : 'a Range.t list;
}val next_size : 'a t -> intval next_start : 'a t -> intval prev_size : 'a t -> intval prev_start : 'a t -> intmodule Fields : sig ... endval sexp_of_t :
('a -> Ppx_sexp_conv_lib.Sexp.t) ->
'a t ->
Ppx_sexp_conv_lib.Sexp.tval all_same : 'a t -> boolall_same t returns true if t contains only Same ranges.
module Stable : sig ... end