package patdiff
File Diff using the Patience Diff algorithm
Install
Dune Dependency
Authors
Maintainers
Sources
v0.16.1.tar.gz
md5=ed1fd8166e2e99774432c1e28515f37e
sha512=7833f95ce42eeb17ecbef514eab13a37a0ab125b3c6e7e8af09c5b0efa3be6b971c6c4a40f3d809f1c254c8bc720ddaa46b54ff0514ddb9db0f5be03d99f5fd0
doc/src/patdiff.kernel/hunks.ml.html
Source file hunks.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
open! Core open! Import type t = string Patience_diff.Hunk.t list [@@deriving sexp_of] let iter' ~f_hunk_break ~f_line (hunks : t) = List.iter hunks ~f:(fun hunk -> f_hunk_break hunk; List.iter hunk.ranges ~f:(function | Same r -> Array.iter r ~f:(fun (_, next) -> f_line next) | Prev r | Next r | Unified r -> Array.iter r ~f:f_line | Replace (ar1, ar2) -> Array.iter ar1 ~f:f_line; Array.iter ar2 ~f:f_line)) ;; let iter ~f_hunk_break ~f_line (hunks : t) = iter' ~f_line hunks ~f_hunk_break:(fun hunk -> f_hunk_break (hunk.prev_start, hunk.prev_size) (hunk.next_start, hunk.next_size)) ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>