-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from dinosaure/improve-git
Add an interface on the Git module to clarify what we want to expose
- Loading branch information
Showing
3 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
type elt = | ||
[ `Reg of Bob_fpath.t * Digestif.SHA1.t | ||
| `Dir of Bob_fpath.t * Digestif.SHA1.t ] | ||
|
||
type tree = elt list | ||
|
||
val tree_of_string : ?path:Bob_fpath.t -> string -> tree | ||
val tree_of_cstruct : ?path:Bob_fpath.t -> Stdbob.bigstring -> elt Stream.source | ||
|
||
val digest : | ||
kind:Carton.kind -> | ||
?off:int -> | ||
?len:int -> | ||
Stdbob.bigstring -> | ||
Digestif.SHA1.t | ||
|
||
val serialize_directory : | ||
(Bob_fpath.t * Digestif.SHA1.t) list -> string Stream.stream | ||
|
||
val hash_of_root : | ||
real_length:int -> root:Bob_fpath.t -> Digestif.SHA1.t -> Digestif.SHA1.t | ||
|
||
val hash_of_directory : | ||
root:Bob_fpath.t -> | ||
(Bob_fpath.t, Digestif.SHA1.t * [ `Dir | `Reg | `Root ]) Hashtbl.t -> | ||
Bob_fpath.t -> | ||
Digestif.SHA1.t Fiber.t | ||
|
||
val hash_of_filename : Bob_fpath.t -> Digestif.SHA1.t Fiber.t |