package patdiff
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
File Diff using the Patience Diff algorithm
Install
dune-project
Dependency
Authors
Maintainers
Sources
patdiff-v0.12.0.tar.gz
sha256=718f30ca6e567266d2dec5c040e5e6b56657a2adcde1d2367d9dca38c814786a
md5=c7f69086b9b2c5a0fbb43b1ef89162b1
doc/patdiff.lib/Patdiff_lib/Patdiff_core/index.html
Module Patdiff_lib.Patdiff_core
module Format : module type of struct include Patdiff_format endPatdiff_format is the home of all the internal representations of the formatting that will be applied to the diff. ie. prefixes, suffixes, & valid styles.
module Output : module type of struct include Output_mode endval diff :
context:int ->
line_big_enough:int ->
keep_ws:bool ->
prev:string array ->
next:string array ->
string Patdiff_lib.Import.Patience_diff.Hunk.t listdiff ~context ~keep_ws ~prev ~next uses Patience_diff.String to get a list of hunks describing the comparison between prev and next.
val refine :
rules:Format.Rules.t ->
produce_unified_lines:bool ->
output:Output.t ->
keep_ws:bool ->
split_long_lines:bool ->
interleave:bool ->
word_big_enough:int ->
string Patdiff_lib.Import.Patience_diff.Hunk.t list ->
string Patdiff_lib.Import.Patience_diff.Hunk.t listrefine hunks maps each Range.Replace (prev, next) in hunks to a diff of prev against next.
val print :
prev_file:string ->
next_file:string ->
rules:Format.Rules.t ->
output:Output.t ->
location_style:Format.Location_style.t ->
string Patdiff_lib.Import.Patience_diff.Hunk.t list ->
unitPrint a hunk list, usually from diff or refine
val output_to_string :
?print_global_header:bool ->
file_names:(string * string) ->
rules:Format.Rules.t ->
output:Output.t ->
location_style:Format.Location_style.t ->
string Patdiff_lib.Import.Patience_diff.Hunk.t list ->
stringOutput a hunk list, usually from diff or refine, to a string
val iter_ansi :
rules:Format.Rules.t ->
f_hunk_break:((int * int) -> (int * int) -> unit) ->
f_line:(string -> unit) ->
string Patdiff_lib.Import.Patience_diff.Hunk.t list ->
unitIter along the lines of the diff and the breaks between hunks. Offers more flexibility regarding what the caller wants to do with the lines
val patdiff :
?context:int ->
?keep_ws:bool ->
?rules:Format.Rules.t ->
?output:Output.t ->
?produce_unified_lines:bool ->
?split_long_lines:bool ->
?print_global_header:bool ->
?location_style:Format.Location_style.t ->
?interleave:bool ->
?line_big_enough:int ->
?word_big_enough:int ->
prev:diff_input ->
next:diff_input ->
unit ->
stringRuns the equivalent of the command line version of patdiff on two given contents prev and next. Uses Patience_diff.String.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>