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/comparison_result.ml.html
Source file comparison_result.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
open! Core open! Import type t = | Binary_same | Binary_different of { prev_is_binary : bool ; next_is_binary : bool } | Hunks of Hunks.t let update_config_infer_keep_ws config ~prev ~next = let keep_ws = config.Configuration.keep_ws || Should_keep_whitespace.for_diff ~prev ~next in Configuration.override ~keep_ws config ;; let create (config : Configuration.t) ~(prev : Diff_input.t) ~(next : Diff_input.t) ~compare_assuming_text = let prev_is_binary, next_is_binary = match config.assume_text with | true -> false, false | false -> Is_binary.string prev.text, Is_binary.string next.text in if prev_is_binary || next_is_binary then if String.( = ) prev.text next.text then Binary_same else Binary_different { prev_is_binary; next_is_binary } else Hunks (compare_assuming_text (update_config_infer_keep_ws config ~prev ~next) ~prev ~next) ;; let has_no_diff t = match t with | Binary_same -> true | Binary_different _ -> false | Hunks hunks -> List.for_all hunks ~f:Patience_diff.Hunk.all_same ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>