package git-split

  1. Overview
  2. Docs
type context_line = [
  1. | `ContextLine of string
]
val pp_context_line : Ppx_deriving_runtime.Format.formatter -> context_line -> Ppx_deriving_runtime.unit
val show_context_line : context_line -> Ppx_deriving_runtime.string
val equal_context_line : context_line -> context_line -> Ppx_deriving_runtime.bool
type removed_line = [
  1. | `RemovedLine of string
]
val pp_removed_line : Ppx_deriving_runtime.Format.formatter -> removed_line -> Ppx_deriving_runtime.unit
val show_removed_line : removed_line -> Ppx_deriving_runtime.string
val equal_removed_line : removed_line -> removed_line -> Ppx_deriving_runtime.bool
type added_line = [
  1. | `AddedLine of string
]
val pp_added_line : Ppx_deriving_runtime.Format.formatter -> added_line -> Ppx_deriving_runtime.unit
val show_added_line : added_line -> Ppx_deriving_runtime.string
val equal_added_line : added_line -> added_line -> Ppx_deriving_runtime.bool
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 hunk = {
  1. starting_line : int;
  2. context_snippet : string option;
  3. 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 changed_file = {
  1. path : string;
  2. hunks : hunk list;
}
val pp_changed_file : Ppx_deriving_runtime.Format.formatter -> changed_file -> Ppx_deriving_runtime.unit
val show_changed_file : changed_file -> Ppx_deriving_runtime.string
val equal_changed_file : changed_file -> changed_file -> Ppx_deriving_runtime.bool
type renamed_file = {
  1. old_path : string;
  2. new_path : string;
  3. hunks : hunk list;
}
val pp_renamed_file : Ppx_deriving_runtime.Format.formatter -> renamed_file -> Ppx_deriving_runtime.unit
val show_renamed_file : renamed_file -> Ppx_deriving_runtime.string
val equal_renamed_file : renamed_file -> renamed_file -> Ppx_deriving_runtime.bool
type deleted_file = {
  1. path : string;
  2. lines : removed_line list;
}
val pp_deleted_file : Ppx_deriving_runtime.Format.formatter -> deleted_file -> Ppx_deriving_runtime.unit
val show_deleted_file : deleted_file -> Ppx_deriving_runtime.string
val equal_deleted_file : deleted_file -> deleted_file -> Ppx_deriving_runtime.bool
type created_file = {
  1. path : string;
  2. lines : added_line list;
}
val pp_created_file : Ppx_deriving_runtime.Format.formatter -> created_file -> Ppx_deriving_runtime.unit
val show_created_file : created_file -> Ppx_deriving_runtime.string
val equal_created_file : created_file -> created_file -> Ppx_deriving_runtime.bool
type file =
  1. | DeletedFile of deleted_file
  2. | CreatedFile of created_file
  3. | ChangedFile of changed_file
  4. | RenamedFile of renamed_file
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
type diff = {
  1. files : file list;
}
val pp_diff : Ppx_deriving_runtime.Format.formatter -> diff -> Ppx_deriving_runtime.unit
val show_diff : diff -> Ppx_deriving_runtime.string
val equal_diff : diff -> diff -> Ppx_deriving_runtime.bool
OCaml

Innovation. Community. Security.