Up

module Reference

: sig

Branch references.

include Object.S
#
val to_raw : t -> string
#
val of_raw : string -> t
#
module Map : Misc.Map with type key = t

A map of references.

#
val head : t

The repository HEAD.

#
val master : t

The master branch.

#
val is_head : t -> bool

Is the given reference the HEAD ?

#
type head_contents =
# | SHA of SHA.Commit.t
# | Ref of t
(*The possible HEAD contents.*)
#
val head_contents : SHA.Commit.t Map.t -> SHA.Commit.t -> head_contents

Compute the head contents. The result is either the hex representation of the SHA or something like ref: <ref> if the SHA has already a reference pointing to it.

#
val is_valid : t -> bool

Check if a reference can be stored on disk properly.

end