package patch

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type hunk = {
  1. mine_start : int;
  2. mine_len : int;
  3. mine : string list;
  4. their_start : int;
  5. their_len : int;
  6. their : string list;
}
val pp_hunk : Format.formatter -> hunk -> unit
type operation =
  1. | Edit of string
  2. | Rename of string * string
  3. | Delete of string
  4. | Create of string
  5. | Rename_only of string * string
val pp_operation : git:bool -> Format.formatter -> operation -> unit
val operation_eq : operation -> operation -> bool
type t = {
  1. operation : operation;
  2. hunks : hunk list;
  3. mine_no_nl : bool;
  4. their_no_nl : bool;
}
val pp : git:bool -> Format.formatter -> t -> unit
val to_diffs : string -> t list
val patch : string option -> t -> string option
OCaml

Innovation. Community. Security.