Compare commits
No commits in common. "f5281fbcb14de250aa7e58c0d48a2c0f03f855c3" and "60795e65e27a87566026f78bca135bca82f20f13" have entirely different histories.
f5281fbcb1
...
60795e65e2
2 changed files with 3 additions and 11 deletions
|
@ -109,13 +109,7 @@ let connect ctx endpoint =
|
||||||
|
|
||||||
let branch t = t.branch
|
let branch t = t.branch
|
||||||
|
|
||||||
let commit t =
|
let commit t = t.head
|
||||||
match t.head, t.committed with
|
|
||||||
| None, _ -> None
|
|
||||||
| Some commit, None -> Some (`Clean commit)
|
|
||||||
| Some commit, Some _ ->
|
|
||||||
(* XXX: this is not precise as we can have made zero changes *)
|
|
||||||
Some (`Dirty commit)
|
|
||||||
|
|
||||||
type key = Mirage_kv.Key.t
|
type key = Mirage_kv.Key.t
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,8 @@ val connect : Mimic.ctx -> string -> t Lwt.t
|
||||||
val branch : t -> Git.Reference.t
|
val branch : t -> Git.Reference.t
|
||||||
(** [branch t] returns the branch used by the given [t]. *)
|
(** [branch t] returns the branch used by the given [t]. *)
|
||||||
|
|
||||||
val commit : t -> [ `Clean of Digestif.SHA1.t | `Dirty of Digestif.SHA1.t ] option
|
val commit : t -> Digestif.SHA1.t option
|
||||||
(** [commit t] returns the commit used by the given [t]. The commit is either
|
(** [commit t] returns the commit used by the given [t]. *)
|
||||||
marked [`Dirty _] if we're inside a [change_and_push] or [`Clean _]
|
|
||||||
otherwise. *)
|
|
||||||
|
|
||||||
val to_octets : ?level:int -> t -> string Lwt_stream.t
|
val to_octets : ?level:int -> t -> string Lwt_stream.t
|
||||||
(** [to_octets ?level store] returns a serialized version of the given [store].
|
(** [to_octets ?level store] returns a serialized version of the given [store].
|
||||||
|
|
Loading…
Reference in a new issue