forked from mirage/irmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
65 additions
and
328 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
(mdx | ||
(files README.md) | ||
(package irmin-unix) | ||
(packages irmin-unix)) | ||
(package irmin-cli) | ||
(packages irmin-cli)) |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
(library | ||
(name irmin_unix) | ||
(public_name irmin.unix) | ||
(libraries irmin unix irmin-watcher) | ||
(preprocess | ||
(pps ppx_irmin.internal)) | ||
(instrumentation | ||
(backend bisect_ppx))) |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
(* | ||
* Copyright (c) 2013-2022 Thomas Gazagnaire <[email protected]> | ||
* Copyright (c) 2022 Tarides <[email protected]> | ||
* | ||
* Permission to use, copy, modify, and distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
|
@@ -15,5 +14,10 @@ | |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*) | ||
|
||
let misc = [] | ||
let () = Irmin_test.Store.run "irmin-unix" ~misc [] | ||
module Info = Info.Make | ||
module I = Info (Irmin.Info.Default) | ||
|
||
let info = I.v | ||
|
||
let set_listen_dir_hook () = | ||
Irmin.Backend.Watch.set_listen_dir_hook Irmin_watcher.hook |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* | ||
* Copyright (c) 2013-2022 Thomas Gazagnaire <[email protected]> | ||
* Copyright (c) 2022 Tarides <[email protected]> | ||
* | ||
* Permission to use, copy, modify, and distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
|
@@ -14,16 +14,21 @@ | |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*) | ||
|
||
let set_listen_dir_hook = Hook.init | ||
(** {1 Irmin Unix utilities} | ||
module I = Info.Make (Irmin.Info.Default) | ||
|
||
let info = I.v | ||
This module provides utilities for Unix applications. *) | ||
|
||
module Info = Info.Make | ||
module Git = Irmin_git_unix | ||
module Http = Irmin_http_unix | ||
module Graphql = Irmin_graphql_unix | ||
module FS = Irmin_fs_unix | ||
module Cli = Irmin_cli | ||
module Resolver = Irmin_cli.Resolver | ||
|
||
val info : | ||
?author:string -> | ||
('a, Format.formatter, unit, unit -> Irmin.Info.default) format4 -> | ||
'a | ||
(** [info fmt ()] creates a fresh commit info, with the {{!Irmin.Info.S.date} | ||
date} set to [Unix.gettimeoday ()] and the {{!Irmin.Info.S.author} author} | ||
built using [Unix.gethostname()] and [Unix.getpid()] if [author] is not | ||
provided. *) | ||
|
||
val set_listen_dir_hook : unit -> unit | ||
(** Install {!Irmin_watcher.hook} as the listen hook for watching changes in | ||
directories. *) |
Oops, something went wrong.