In diff terms, a hunk is a unit of consecutive ranges with some Same context before
and after New, Old, 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 = {mine_start : int; |
mine_size : int; |
other_start : int; |
other_size : int; |
ranges : 'a Range.t list; |
}include sig ... endval other_size : 'a t ‑> intval other_start : 'a t ‑> intval mine_size : 'a t ‑> intval mine_start : 'a t ‑> intmodule Fields : sig ... endval sexp_of_t : ('a ‑> Base.Sexp.t) ‑> 'a t ‑> Base.Sexp.t