package git-split

  1. Overview
  2. Docs
type line =
  1. | Context of string
  2. | Diff of string * [ `added | `removed ] * [ `included | `notincluded ]
val equal_line : line -> line -> Ppx_deriving_runtime.bool
type visibility =
  1. | Expanded
  2. | Collapsed
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 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 equal_path : path -> path -> Ppx_deriving_runtime.bool
type file_kind =
  1. | ChangedFile
  2. | CreatedFile
  3. | DeletedFile
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 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 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 equal_file : file -> file -> Ppx_deriving_runtime.bool
OCaml

Innovation. Community. Security.