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 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 equal_hunk : hunk -> hunk -> Ppx_deriving_runtime.bool
type binary_content = [
  1. | `Binary of string
]
val pp_binary_content : Ppx_deriving_runtime.Format.formatter -> binary_content -> Ppx_deriving_runtime.unit
val show_binary_content : binary_content -> Ppx_deriving_runtime.string
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 equal_path : path -> path -> Ppx_deriving_runtime.bool
type mode_change = {
  1. old_mode : int;
  2. new_mode : int;
}
val pp_mode_change : Ppx_deriving_runtime.Format.formatter -> mode_change -> Ppx_deriving_runtime.unit
val show_mode_change : mode_change -> Ppx_deriving_runtime.string
val equal_mode_change : mode_change -> mode_change -> Ppx_deriving_runtime.bool
type changed_file = {
  1. path : path;
  2. mode_change : mode_change option;
  3. content : [ `Text of hunk list | binary_content ];
}
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 created_file = {
  1. path : string;
  2. mode : int;
  3. content : [ `Text of added_line list | binary_content ];
}
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 deleted_file = {
  1. path : string;
  2. mode : int;
  3. content : [ `Text of removed_line list | binary_content ];
}
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 file =
  1. | ChangedFile of changed_file
  2. | CreatedFile of created_file
  3. | DeletedFile of deleted_file
val pp_file : Ppx_deriving_runtime.Format.formatter -> file -> Ppx_deriving_runtime.unit
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 equal_diff : diff -> diff -> Ppx_deriving_runtime.bool
OCaml

Innovation. Community. Security.