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. | Path 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_kind =
  1. | ChangedFile
  2. | CreatedFile
  3. | DeletedFile
val pp_file_kind : Ppx_deriving_runtime.Format.formatter -> file_kind -> Ppx_deriving_runtime.unit
val show_file_kind : file_kind -> Ppx_deriving_runtime.string
val equal_file_kind : file_kind -> file_kind -> Ppx_deriving_runtime.bool
type mode =
  1. | Mode of int
  2. | ChangedMode of {
    1. old_mode : int;
    2. new_mode : int;
    }
val pp_mode : Ppx_deriving_runtime.Format.formatter -> mode -> Ppx_deriving_runtime.unit
val show_mode : mode -> Ppx_deriving_runtime.string
val equal_mode : mode -> mode -> Ppx_deriving_runtime.bool
type content =
  1. | Text of {
    1. visibility : visibility;
    2. hunks : hunk list;
    }
  2. | Binary of string * [ `included | `notincluded ]
val pp_content : Ppx_deriving_runtime.Format.formatter -> content -> Ppx_deriving_runtime.unit
val show_content : content -> Ppx_deriving_runtime.string
val equal_content : content -> content -> Ppx_deriving_runtime.bool
type file = {
  1. path : path;
  2. kind : file_kind;
  3. mode : mode option;
  4. content : content;
}
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.