package git-split

  1. Overview
  2. Docs
type context_line = [
  1. | `ContextLine of string
]
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 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 show_added_line : added_line -> Ppx_deriving_runtime.string
val equal_added_line : added_line -> added_line -> Ppx_deriving_runtime.bool
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 equal_hunk : hunk -> hunk -> Ppx_deriving_runtime.bool
type binary_content = [
  1. | `Binary of string
]
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 equal_path : path -> path -> Ppx_deriving_runtime.bool
type mode_change = {
  1. old_mode : int;
  2. new_mode : int;
}
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 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 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 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 equal_file : file -> file -> Ppx_deriving_runtime.bool
type diff = {
  1. files : file list;
}
val equal_diff : diff -> diff -> Ppx_deriving_runtime.bool
OCaml

Innovation. Community. Security.