package pfff

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type patch_raw = string list
and fileinfo = ((int * int) * hunk) list
and hunk = string list
type patchline =
  1. | Context of string
  2. | Minus of string
  3. | Plus of string
type stat = {
  1. mutable nb_minus : int;
  2. mutable nb_plus : int;
}
val string_of_stat : stat -> string
val parse_patch : string list -> patchinfo
val parse_hunk : string list -> patchline list
val diffstat : patchinfo -> (Common.filename * stat) list
val diffstat_file : fileinfo -> stat
val relevant_part : (Common.filename * (int * int)) -> patchinfo -> string
val hunk_containing_string : string -> patchinfo -> hunk
val hunks_containing_string : string -> patchinfo -> hunk list
val modified_lines : fileinfo -> int list
type edition_cmd =
  1. | RemoveLines of int list
  2. | PreAddAt of int * string list
  3. | PostAddAt of int * string list
val generate_patch : edition_cmd list -> filename_in_project:string -> Common.filename -> string list
OCaml

Innovation. Community. Security.