type t = private {output : Patdiff_core.Output.t; |
rules : Patdiff_core.Format.Rules.t; |
ext_cmp : string option; |
float_tolerance : Core.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; |
old_alt : string option; |
new_alt : string option; |
location_style : Patdiff_core.Format.Location_style.t; |
warn_if_no_trailing_newline_in_both : bool; |
}include sig ... endval warn_if_no_trailing_newline_in_both : t ‑> boolval location_style : t ‑> Patdiff_core.Format.Location_style.tval new_alt : t ‑> string optionval old_alt : t ‑> string optionval mask_uniques : t ‑> boolval double_check : t ‑> boolval quiet : t ‑> boolval shallow : t ‑> boolval word_big_enough : t ‑> intval line_big_enough : t ‑> intval context : t ‑> intval assume_text : t ‑> boolval interleave : t ‑> boolval split_long_lines : t ‑> boolval keep_ws : t ‑> boolval unrefined : t ‑> boolval produce_unified_lines : t ‑> boolval float_tolerance : t ‑> Core.Percent.t optionval ext_cmp : t ‑> string optionval rules : t ‑> Patdiff_core.Format.Rules.tval output : t ‑> Patdiff_core.Output.tmodule Fields : sig ... endval override : ?output:Patdiff_core.Output.t ‑> ?rules:Patdiff_core.Format.Rules.t ‑> ?ext_cmp:string option ‑> ?float_tolerance:Core.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 ‑> ?old_alt:string option ‑> ?new_alt:string option ‑> ?location_style:Patdiff_core.Format.Location_style.t ‑> ?warn_if_no_trailing_newline_in_both:bool ‑> t ‑> tval load : ?quiet_errors:bool ‑> string ‑> t optionval dark_bg : t Core.Lazy.tval light_bg : t Core.Lazy.tmodule Config : sig ... endmodule Old_config : sig ... endval default : stringA default config, suitable for writing to ~/.patdiff or passing to
fun default -> parse ([%of_sexp: Config.t] (Sexp.of_string default))
.
val get_config : ?filename:string ‑> unit ‑> tReads a config from filename, which by default is ~/.patdiff. If ~filename:"" is
passed or filename cannot be read, returns default.