Select the types of activity you want to include in your feed.
irmin: document heap.mli and schema.mli, add Heap.pp
Address merlint warnings about missing documentation in heap.mli (blocks, refs, lifecycle, BACKEND signature) and schema.mli's functor parameter. Also add a stub Heap.pp for E415.
···4343let flush t = t.flush ()
4444let close t = t.close ()
4545let to_seq t = t.to_seq ()
4646+let pp ppf _ = Format.fprintf ppf "<heap>"
46474748module Make (B : BACKEND) = struct
4849 let v (s : B.t) : (B.hash, B.block, _) t =
+42
lib/heap.mli
···2626(** A heap parameterized by hash type ['h], block type ['v], and backend tag
2727 ['b]. *)
28282929+val pp : Format.formatter -> _ t -> unit
3030+(** Pretty-print a heap (debug only — does not enumerate contents). *)
3131+2932(** {1:blocks Blocks} *)
30333134val find : ('h, 'v, _) t -> 'h -> 'v option
3535+(** [find heap h] returns the block at [h], if present. *)
3636+3237val put : ('h, 'v, _) t -> 'h -> 'v -> unit
3838+(** [put heap h v] stores [v] under [h]. *)
3939+3340val mem : ('h, _, _) t -> 'h -> bool
4141+(** [mem heap h] is [true] iff [h] is in [heap]. *)
4242+3443val batch : ('h, 'v, _) t -> ('h * 'v) list -> unit
4444+(** [batch heap pairs] stores all [pairs] atomically (best effort). *)
35453646(** {1:refs Named References}
37473848 Mutable pointers into the heap. Used for branches, HEAD, etc. *)
39494050val find_ref : ('h, _, _) t -> string -> 'h option
5151+(** [find_ref heap name] is the hash bound to [name], if any. *)
5252+4153val set_ref : ('h, _, _) t -> string -> 'h -> unit
5454+(** [set_ref heap name h] binds [name] to [h]. *)
5555+4256val del_ref : ('h, _, _) t -> string -> unit
5757+(** [del_ref heap name] removes [name]. *)
5858+4359val list_refs : (_, _, _) t -> string list
6060+(** [list_refs heap] lists all ref names. *)
44614562val cas_ref : ('h, _, _) t -> string -> test:'h option -> set:'h option -> bool
4663(** Compare-and-set on a ref. *)
···4865(** {1:lifecycle Lifecycle} *)
49665067val flush : (_, _, _) t -> unit
6868+(** [flush heap] flushes pending writes to the backend. *)
6969+5170val close : (_, _, _) t -> unit
7171+(** [close heap] releases backend resources. *)
52725373(** {1:backend Backend binding} *)
5474···6181 for JSON, etc. *)
62826383 val find : t -> hash -> block option
8484+ (** Look up a block. *)
8585+6486 val put : t -> hash -> block -> unit
8787+ (** Store a block. *)
8888+6589 val mem : t -> hash -> bool
9090+ (** Check whether a block exists. *)
9191+6692 val batch : t -> (hash * block) list -> unit
9393+ (** Store many blocks. *)
9494+6795 val find_ref : t -> string -> hash option
9696+ (** Look up a named ref. *)
9797+6898 val set_ref : t -> string -> hash -> unit
9999+ (** Set a named ref. *)
100100+69101 val del_ref : t -> string -> unit
102102+ (** Delete a named ref. *)
103103+70104 val list_refs : t -> string list
105105+ (** List all ref names. *)
106106+71107 val cas_ref : t -> string -> test:hash option -> set:hash option -> bool
108108+ (** Compare-and-set on a ref. *)
109109+72110 val flush : t -> unit
111111+ (** Flush pending writes. *)
112112+73113 val close : t -> unit
114114+ (** Release resources. *)
74115end
7511676117module Make (B : BACKEND) : sig
77118 val v : B.t -> (B.hash, B.block, _) t
119119+ (** [v backend] wraps a backend instance into a typed heap. *)
78120end
7912180122(** {1:recording Recording and Replay}
+3
lib/schema.mli
···2525 type block
26262727 val hash_equal : hash -> hash -> bool
2828+ (** Hash equality. *)
2929+2830 val hash_block : block -> hash
3131+ (** Compute the content-address of a block. *)
2932end) : sig
3033 (** {1:children Children}
3134