type nonrec t = Git.Reference.tmodule P : sig ... endval head : tval master : tval is_head : t -> boolval of_string : string -> tval to_string : t -> stringval of_path : Git.Path.t -> tval to_path : t -> Git.Path.ttype head_contents = | Hash of Hash.t | A pointer to an hash. |
| Ref of t | A reference which one can point to an other reference or an hash. |
The type of the value of a Git reference.
val pp_head_contents : head_contents Fmt.tPretty-printer of head_contents.
val equal_head_contents : head_contents -> head_contents -> boolequal_head_contents a b implies a = Ref a' and b = Ref b' and Reference.equal a' b' = true or a = Hash a' and b = Hash b' and Hash.equal a' b'.
However, semantically Ref a' could be equal to Hash b' iff Hash b' is come from the reference a'. That means this function does not handle any indirection when it tests your values.
val compare_head_contents : head_contents -> head_contents -> intmodule A : sig ... endmodule M : sig ... endmodule D : sig ... endmodule E : sig ... end