File tree Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ let err_not_found n k =
22
22
let str = Printf. sprintf " Git.Memory.%s: %s not found" n k in
23
23
Lwt. fail (Invalid_argument str)
24
24
25
- module Make (D : SHA.DIGEST ) = struct
25
+ module Make (D : SHA.DIGEST ) ( I : Inflate.S ) = struct
26
26
27
- module Value_IO = Value. IO (D )(Inflate. None )
27
+ module Value_IO = Value. IO (D )(I )
28
28
29
29
type t = {
30
30
root : string ;
@@ -119,8 +119,8 @@ module Make (D: SHA.DIGEST) = struct
119
119
in
120
120
failwith str
121
121
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 )
124
124
125
125
let write_pack t pack =
126
126
Pack_IO. of_raw pack >> = fun pack ->
@@ -209,5 +209,5 @@ module Make (D: SHA.DIGEST) = struct
209
209
let kind = `Memory
210
210
211
211
module Digest = D
212
- module Inflate = Inflate. None
212
+ module Inflate = I
213
213
end
Original file line number Diff line number Diff line change 16
16
17
17
(* * Store Git objects in memory. *)
18
18
19
- module Make (D : SHA.DIGEST ): sig
19
+ module Make (D : SHA.DIGEST ) ( I : Inflate.S ) : sig
20
20
21
21
include Store. S
22
22
Original file line number Diff line number Diff line change @@ -274,7 +274,6 @@ module Smart_HTTP = struct
274
274
module Net = struct
275
275
module IO = HTTP_IO
276
276
type ctx = { resolver : Resolver_lwt .t ; conduit : Conduit_mirage .t ; }
277
- let sexp_of_ctx { resolver; _ } = Resolver_lwt. sexp_of_t resolver
278
277
let default_ctx = {
279
278
resolver = Resolver_mirage. localhost;
280
279
conduit = Conduit_mirage. empty;
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
33
33
34
34
module Sync : sig
35
35
module IO : Git .Sync. IO with type ctx = Resolver_lwt. t * Conduit_mirage. t
36
+
36
37
module Result :
37
38
(module type of Git.Sync. Result with type fetch = Git.Sync.Result. fetch
38
39
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 ):
40
42
Git.Sync. S with type t = S. t and type ctx = IO. ctx
41
43
end
42
44
Original file line number Diff line number Diff line change @@ -307,9 +307,9 @@ module Result = struct
307
307
308
308
end
309
309
310
- module Make (IO : IO ) (D : SHA.DIGEST ) ( I : Inflate.S ) ( Store : Store.S ) = struct
310
+ module Make (IO : IO ) (Store : Store.S ) = struct
311
311
312
- module SHA_IO = SHA. IO (D )
312
+ module SHA_IO = SHA. IO (Store. Digest )
313
313
314
314
exception Error
315
315
@@ -878,7 +878,7 @@ module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (Store: Store.S) = struct
878
878
879
879
module Update_request = struct
880
880
881
- module Pack_IO = Pack. IO (D )( I )
881
+ module Pack_IO = Pack. IO (Store. Digest )( Store. Inflate )
882
882
883
883
type command =
884
884
| 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
1000
1000
| Fetch of fetch
1001
1001
1002
1002
module Graph = Global_graph. Make (Store )
1003
- module Pack_IO = Pack. IO (D )( I )
1003
+ module Pack_IO = Pack. IO (Store. Digest )( Store. Inflate )
1004
1004
1005
1005
let push ?ctx t ~branch gri =
1006
1006
Log. debug " Sync.push" ;
Original file line number Diff line number Diff line change @@ -177,5 +177,4 @@ module type IO = sig
177
177
178
178
end
179
179
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
348
348
module Sync = struct
349
349
module IO = IO_Sync
350
350
module Result = Sync. Result
351
- module Make = Sync. Make (IO )( D )( I )
351
+ module Make = Sync. Make (IO )
352
352
end
353
353
354
354
module FS = struct
355
355
module IO = IO_FS
356
356
include Git.FS. Make (IO_FS )(D )(I )
357
357
end
358
358
359
- module Memory = Git.Memory. Make (D )
359
+ module Memory = Git.Memory. Make (D )( I )
360
360
361
361
module SHA_IO = Git.SHA. IO (D )
362
362
module Value_IO = Value. IO (D )(I )
Original file line number Diff line number Diff line change 16
16
17
17
open Test_store
18
18
19
- module Memory = Git.Memory. Make (Git_unix. SHA1 )
19
+ module Memory = Git.Memory. Make (Git_unix. SHA1 )( Git_unix. Zlib )
20
20
21
21
let init () =
22
22
Git.Value.Cache. clear () ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ depopts: [
56
56
"nocrypto"
57
57
]
58
58
conflicts: [
59
- "cohttp" {< "0.18.0" & >="0. 19.0 "}
59
+ "cohttp" {< "0.19.1 "}
60
60
"conduit" {< "0.8.4"}
61
61
"alcotest" {< "0.4.0"}
62
62
"camlzip" {< "1.05"}
You can’t perform that action at this time.
0 commit comments