···8787 let put tbl h data = Hashtbl.replace tbl (key h) data
8888 let mem tbl h = Hashtbl.mem tbl (key h)
8989 let batch tbl l = List.iter (fun (h, data) -> put tbl h data) l
9090- let find_ref _ _ = None
9090+ let ref _ _ = None
9191 let set_ref _ _ _ = ()
9292 let del_ref _ _ = ()
9393 let list_refs _ = []
+1-1
lib/atproto/irmin_atproto.ml
···9494 let put t h d = t#put h d
9595 let mem t h = t#has h
9696 let batch t l = List.iter (fun (h, d) -> t#put h d) l
9797- let find_ref _ _ = None
9797+ let ref _ _ = None
9898 let set_ref _ _ _ = ()
9999 let del_ref _ _ = ()
100100 let list_refs _ = []
+1-4
lib/git/irmin_git.ml
···124124125125 let mem repo h = Git.Repository.exists repo (git_hash h)
126126 let batch repo l = List.iter (fun (h, data) -> put repo h data) l
127127-128128- let find_ref repo name =
129129- Option.map irmin_hash (Git.Repository.read_ref repo name)
130130-127127+ let ref repo name = Option.map irmin_hash (Git.Repository.read_ref repo name)
131128 let set_ref repo name h = Git.Repository.write_ref repo name (git_hash h)
132129 let del_ref repo name = Git.Repository.delete_ref repo name
133130 let list_refs repo = Git.Repository.list_refs repo
+6-6
lib/heap.ml
···77 val put : t -> hash -> block -> unit
88 val mem : t -> hash -> bool
99 val batch : t -> (hash * block) list -> unit
1010- val find_ref : t -> string -> hash option
1010+ val ref : t -> string -> hash option
1111 val set_ref : t -> string -> hash -> unit
1212 val del_ref : t -> string -> unit
1313 val list_refs : t -> string list
···2121 put : 'h -> 'v -> unit;
2222 mem : 'h -> bool;
2323 batch : ('h * 'v) list -> unit;
2424- find_ref : string -> 'h option;
2424+ ref : string -> 'h option;
2525 set_ref : string -> 'h -> unit;
2626 del_ref : string -> unit;
2727 list_refs : unit -> string list;
···3535let put t h data = t.put h data
3636let mem t h = t.mem h
3737let batch t l = t.batch l
3838-let find_ref t name = t.find_ref name
3838+let ref t name = t.ref name
3939let set_ref t name h = t.set_ref name h
4040let del_ref t name = t.del_ref name
4141let list_refs t = t.list_refs ()
···5252 put = B.put s;
5353 mem = B.mem s;
5454 batch = B.batch s;
5555- find_ref = B.find_ref s;
5555+ ref = B.ref s;
5656 set_ref = B.set_ref s;
5757 del_ref = B.del_ref s;
5858 list_refs = (fun () -> B.list_refs s);
···7777 put = t.put;
7878 mem = t.mem;
7979 batch = t.batch;
8080- find_ref = t.find_ref;
8080+ ref = t.ref;
8181 set_ref = t.set_ref;
8282 del_ref = t.del_ref;
8383 list_refs = t.list_refs;
···102102 put = (fun _ _ -> ());
103103 mem = (fun h -> Option.is_some (find h));
104104 batch = (fun _ -> ());
105105- find_ref = (fun _ -> None);
105105+ ref = (fun _ -> None);
106106 set_ref = (fun _ _ -> ());
107107 del_ref = (fun _ -> ());
108108 list_refs = (fun () -> []);
+3-3
lib/heap.mli
···47474848 Mutable pointers into the heap. Used for branches, HEAD, etc. *)
49495050-val find_ref : ('h, _, _) t -> string -> 'h option
5151-(** [find_ref heap name] is the hash bound to [name], if any. *)
5050+val ref : ('h, _, _) t -> string -> 'h option
5151+(** [ref heap name] is the hash bound to [name], if any. *)
52525353val set_ref : ('h, _, _) t -> string -> 'h -> unit
5454(** [set_ref heap name h] binds [name] to [h]. *)
···9292 val batch : t -> (hash * block) list -> unit
9393 (** Store many blocks. *)
94949595- val find_ref : t -> string -> hash option
9595+ val ref : t -> string -> hash option
9696 (** Look up a named ref. *)
97979898 val set_ref : t -> string -> hash -> unit
+1-1
lib/schema.ml
···367367368368 (* ===== Refs ===== *)
369369370370- let head heap ~branch = Heap.find_ref heap ("refs/heads/" ^ branch)
370370+ let head heap ~branch = Heap.ref heap ("refs/heads/" ^ branch)
371371 let set_head heap ~branch h = Heap.set_ref heap ("refs/heads/" ^ branch) h
372372373373 let branches heap =
+1-1
test/mst_proof/mst_proof.ml
···1919 let put t h d = Hashtbl.replace t h d
2020 let mem t h = Hashtbl.mem t h
2121 let batch t l = List.iter (fun (h, d) -> Hashtbl.replace t h d) l
2222- let find_ref _ _ = None
2222+ let ref _ _ = None
2323 let set_ref _ _ _ = ()
2424 let del_ref _ _ = ()
2525 let list_refs _ = []
+1-1
test/tar/test.ml
···1515 let put t h d = Hashtbl.replace t h d
1616 let mem t h = Hashtbl.mem t h
1717 let batch t l = List.iter (fun (h, d) -> Hashtbl.replace t h d) l
1818- let find_ref _ _ = None
1818+ let ref _ _ = None
1919 let set_ref _ _ _ = ()
2020 let del_ref _ _ = ()
2121 let list_refs _ = []