Module Vcs_git_provider.Refs

A provider implementation for Vcs.Trait.Refs.

module Make (Runtime : Runtime.S) : sig ... end

Git output parsing

This is exposed for tests and low-level usage.

val parse_ref_kind_exn : string -> Vcs.Ref_kind.t
module Dereferenced : sig ... end

A ref_kind may appear several times in the lines, in which case it will be present both dereferenced and non-dereferenced. Because we want to retrieve the revisions each ref is pointed to, we only want to keep the dereferenced occurrences.

val parse_lines_exn : lines:string list -> Vcs.Refs.t

Parsing the output of "git show-ref --dereference".