package git-split

  1. Overview
  2. Docs
type line =
  1. | Context of string
  2. | Diff of string * [ `added | `removed ] * [ `included | `notincluded ]
val pp_line : Ppx_deriving_runtime.Format.formatter -> line -> Ppx_deriving_runtime.unit
val show_line : line -> Ppx_deriving_runtime.string
val equal_line : line -> line -> Ppx_deriving_runtime.bool
type visibility =
  1. | Expanded
  2. | Collapsed
val pp_visibility : Ppx_deriving_runtime.Format.formatter -> visibility -> Ppx_deriving_runtime.unit
val show_visibility : visibility -> Ppx_deriving_runtime.string
val equal_visibility : visibility -> visibility -> Ppx_deriving_runtime.bool
type hunk = {
  1. starting_line : int;
  2. context_snippet : string option;
  3. visibility : visibility;
  4. lines : line list;
}
val pp_hunk : Ppx_deriving_runtime.Format.formatter -> hunk -> Ppx_deriving_runtime.unit
val show_hunk : hunk -> Ppx_deriving_runtime.string
val equal_hunk : hunk -> hunk -> Ppx_deriving_runtime.bool
type path =
  1. | FilePath of string
  2. | ChangedPath of {
    1. old_path : string;
    2. new_path : string;
    }
val pp_path : Ppx_deriving_runtime.Format.formatter -> path -> Ppx_deriving_runtime.unit
val show_path : path -> Ppx_deriving_runtime.string
val equal_path : path -> path -> Ppx_deriving_runtime.bool
type file = {
  1. path : path;
  2. visibility : visibility;
  3. hunks : hunk list;
}
val pp_file : Ppx_deriving_runtime.Format.formatter -> file -> Ppx_deriving_runtime.unit
val show_file : file -> Ppx_deriving_runtime.string
val equal_file : file -> file -> Ppx_deriving_runtime.bool
OCaml

Innovation. Community. Security.