Add the branch accessor

This commit is contained in:
Calascibetta Romain 2023-03-15 11:43:36 +01:00
parent 73bdcba54b
commit a8ab45f2be
No known key found for this signature in database
GPG key ID: 8CC4DC3365A666B0
2 changed files with 4 additions and 0 deletions

View file

@ -107,6 +107,8 @@ let connect ctx endpoint =
let _r = to_invalid r in
Lwt.return t
let branch t = t.branch
type key = Mirage_kv.Key.t
type change = [

View file

@ -40,6 +40,8 @@ val connect : Mimic.ctx -> string -> t Lwt.t
@raise [Invalid_argument _] if we can not initialize the store, or if
we can not fetch the given [remote]. *)
val branch : t -> Git.Reference.t
val to_octets : t -> string Lwt.t
(** [to_octets store] returns a serialized version of the given [store]. *)