File tree Expand file tree Collapse file tree 7 files changed +17
-16
lines changed
Expand file tree Collapse file tree 7 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ let err_not_found n k =
2222 let str = Printf. sprintf " Git.Memory.%s: %s not found" n k in
2323 Lwt. fail (Invalid_argument str)
2424
25- module Make (D : SHA.DIGEST ) = struct
25+ module Make (D : SHA.DIGEST ) ( I : Inflate.S ) = struct
2626
27- module Value_IO = Value. IO (D )(Inflate. None )
27+ module Value_IO = Value. IO (D )(I )
2828
2929 type t = {
3030 root : string ;
@@ -119,8 +119,8 @@ module Make (D: SHA.DIGEST) = struct
119119 in
120120 failwith str
121121
122- module Pack_IO = Pack. IO (D )(Inflate. None )
123- module Packed_value_IO = Packed_value. IO (D )(Inflate. None )
122+ module Pack_IO = Pack. IO (D )(I )
123+ module Packed_value_IO = Packed_value. IO (D )(I )
124124
125125 let write_pack t pack =
126126 Pack_IO. of_raw pack >> = fun pack ->
@@ -209,5 +209,5 @@ module Make (D: SHA.DIGEST) = struct
209209 let kind = `Memory
210210
211211 module Digest = D
212- module Inflate = Inflate. None
212+ module Inflate = I
213213end
Original file line number Diff line number Diff line change 1616
1717(* * Store Git objects in memory. *)
1818
19- module Make (D : SHA.DIGEST ): sig
19+ module Make (D : SHA.DIGEST ) ( I : Inflate.S ) : sig
2020
2121 include Store. S
2222
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ module FS (FS: FS) (D: Git.SHA.DIGEST) (I: Git.Inflate.S): Git.FS.S
3333
3434module Sync : sig
3535 module IO : Git .Sync. IO with type ctx = Resolver_lwt. t * Conduit_mirage. t
36+
3637 module Result :
3738 (module type of Git.Sync. Result with type fetch = Git.Sync.Result. fetch
3839 and type push = Git.Sync.Result. push)
39- module Make (D : Git.SHA.DIGEST ) (I : Git.Inflate.S ) (S : Git.Store.S ):
40+
41+ module Make (S : Git.Store.S ):
4042 Git.Sync. S with type t = S. t and type ctx = IO. ctx
4143end
4244
Original file line number Diff line number Diff line change @@ -307,9 +307,9 @@ module Result = struct
307307
308308end
309309
310- module Make (IO : IO ) (D : SHA.DIGEST ) ( I : Inflate.S ) ( Store : Store.S ) = struct
310+ module Make (IO : IO ) (Store : Store.S ) = struct
311311
312- module SHA_IO = SHA. IO (D )
312+ module SHA_IO = SHA. IO (Store. Digest )
313313
314314 exception Error
315315
@@ -878,7 +878,7 @@ module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (Store: Store.S) = struct
878878
879879 module Update_request = struct
880880
881- module Pack_IO = Pack. IO (D )( I )
881+ module Pack_IO = Pack. IO (Store. Digest )( Store. Inflate )
882882
883883 type command =
884884 | Create of Reference .t * SHA.Commit .t
@@ -1000,7 +1000,7 @@ module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (Store: Store.S) = struct
10001000 | Fetch of fetch
10011001
10021002 module Graph = Global_graph. Make (Store )
1003- module Pack_IO = Pack. IO (D )( I )
1003+ module Pack_IO = Pack. IO (Store. Digest )( Store. Inflate )
10041004
10051005 let push ?ctx t ~branch gri =
10061006 Log. debug " Sync.push" ;
Original file line number Diff line number Diff line change @@ -177,5 +177,4 @@ module type IO = sig
177177
178178end
179179
180- module Make (IO : IO ) (D : SHA.DIGEST ) (I : Inflate.S ) (S : Store.S ):
181- S with type t = S. t and type ctx = IO. ctx
180+ module Make (IO : IO ) (S : Store.S ): S with type t = S. t and type ctx = IO. ctx
Original file line number Diff line number Diff line change @@ -348,15 +348,15 @@ module Make (D: Git.SHA.DIGEST) (I: Git.Inflate.S) = struct
348348 module Sync = struct
349349 module IO = IO_Sync
350350 module Result = Sync. Result
351- module Make = Sync. Make (IO )( D )( I )
351+ module Make = Sync. Make (IO )
352352 end
353353
354354 module FS = struct
355355 module IO = IO_FS
356356 include Git.FS. Make (IO_FS )(D )(I )
357357 end
358358
359- module Memory = Git.Memory. Make (D )
359+ module Memory = Git.Memory. Make (D )( I )
360360
361361 module SHA_IO = Git.SHA. IO (D )
362362 module Value_IO = Value. IO (D )(I )
Original file line number Diff line number Diff line change 1616
1717open Test_store
1818
19- module Memory = Git.Memory. Make (Git_unix. SHA1 )
19+ module Memory = Git.Memory. Make (Git_unix. SHA1 )( Git_unix. Zlib )
2020
2121let init () =
2222 Git.Value.Cache. clear () ;
You can’t perform that action at this time.
0 commit comments