package comby
Install
Dune Dependency
Authors
Maintainers
Sources
md5=58295a68289d68231cb3c9e0377e44ef
sha512=3f0154f26cc6016c12f57d0b8e43da32b9329572bf67fb5719008eaf3377b8d5a2ab6f775ffe8d16bc85f2c4db52f567ef64da52ccb77d6ba8e496a0dc9eddf7
doc/comby.patdiff/Patdiff/Configuration/index.html
Module Patdiff.Configuration
Source
This module extends Patdiff_kernel.Configuration
with an on-disk config format and functions to parse them.
include module type of struct include Patdiff_kernel.Configuration end
Default amount of context shown around each change in the diff
The following constants were all chosen empirically.
Default cutoff for line-level semantic cleanup. Any match of default_line_big_enough
or more will not be deleted, even if it's surrounded by large inserts and deletes. Raising this quantity can only decrease the number of matches, and lowering it can only increase the number of matches.
Analogous to default_line_big_enough
, but for word-level refinement
Governs the behavior of split_for_readability
. We will only split ranges around matches of size greater than too_short_to_split
. Note that this should always be at least 1, otherwise we will split on a single `Newline token. Raising this quantity will result in less ranges being split, and setting it to infinity is the same as passing in ~interleave:false
.
type t = private Patdiff_kernel.Configuration.t = {
output : Patdiff_kernel.Output.t;
rules : Patdiff_kernel.Format.Rules.t;
ext_cmp : string option;
float_tolerance : Core_kernel.Percent.t option;
produce_unified_lines : bool;
unrefined : bool;
keep_ws : bool;
split_long_lines : bool;
interleave : bool;
assume_text : bool;
context : int;
line_big_enough : int;
word_big_enough : int;
shallow : bool;
quiet : bool;
double_check : bool;
mask_uniques : bool;
prev_alt : string option;
next_alt : string option;
location_style : Patdiff_kernel.Format.Location_style.t;
warn_if_no_trailing_newline_in_both : bool;
}
include Core_kernel.Invariant.S with type t := t
val create_exn :
output:Patdiff_kernel.Output.t ->
rules:Patdiff_kernel.Format.Rules.t ->
float_tolerance:Core_kernel.Percent.t option ->
produce_unified_lines:bool ->
unrefined:bool ->
keep_ws:bool ->
split_long_lines:bool ->
interleave:bool ->
assume_text:bool ->
context:int ->
line_big_enough:int ->
word_big_enough:int ->
shallow:bool ->
quiet:bool ->
double_check:bool ->
mask_uniques:bool ->
prev_alt:string option ->
next_alt:string option ->
location_style:Patdiff_kernel.Format.Location_style.t ->
warn_if_no_trailing_newline_in_both:bool ->
t
Raises if invariant t
fails.
val override :
?output:Patdiff_kernel.Output.t ->
?rules:Patdiff_kernel.Format.Rules.t ->
?float_tolerance:Core_kernel.Percent.t option ->
?produce_unified_lines:bool ->
?unrefined:bool ->
?keep_ws:bool ->
?split_long_lines:bool ->
?interleave:bool ->
?assume_text:bool ->
?context:int ->
?line_big_enough:int ->
?word_big_enough:int ->
?shallow:bool ->
?quiet:bool ->
?double_check:bool ->
?mask_uniques:bool ->
?prev_alt:string option ->
?next_alt:string option ->
?location_style:Patdiff_kernel.Format.Location_style.t ->
?warn_if_no_trailing_newline_in_both:bool ->
t ->
t