Module Vcs.Num_lines_in_diff

Number of lines involved in a change.

Git returns this as a pair of positive integers, which are the number of insertions and number of deletions. Both are a positive or null integer counting a number of lines.

type t = {
  1. insertions : int;
  2. deletions : int;
}
val sexp_of_t : t -> Sexplib0.Sexp.t
val compare : t -> t -> int
val equal : t -> t -> bool
val zero : t
val (+) : t -> t -> t
val sum : t list -> t
val is_zero : t -> bool
val to_string_hum : t -> string

Returns a short string suitable for human consumption. Some examples: ["0"; "+100"; "-15"; "+1,999, -13,898"].

val total : t -> int

The addition of the insertions and deletions.