Skip to content

Commit

Permalink
Merge pull request #46 from reynir/git-commit-message
Browse files Browse the repository at this point in the history
Yocaml_git: Allow specifying a commit message
  • Loading branch information
xhtmlboi authored Nov 15, 2023
2 parents 3c413fd + 6a79498 commit 76b27c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/yocaml_git/yocaml_git.ml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
let execute
: (module Runtime.RUNTIME) -> (module Mirage_clock.PCLOCK) -> ctx:Mimic.ctx
-> ?author:string -> ?email:string -> string -> 'a Yocaml.Effect.t
-> ?author:string -> ?email:string -> ?comment:string -> string -> 'a Yocaml.Effect.t
-> ('a, [> `Msg of string ]) result Lwt.t
=
fun (module Source) (module Pclock) ~ctx ?author ?email remote program ->
fun (module Source) (module Pclock) ~ctx ?author ?email ?comment remote program ->
let open Lwt.Syntax in
let* store = Git_kv.connect ctx remote in
let module Store = Git_kv.Make (Pclock) in
Store.change_and_push ?author ?author_email:email store
Store.change_and_push ?author ?author_email:email ?message:comment store
@@ fun store ->
let module R0 =
Runtime.Make (Source) (Pclock)
Expand Down
1 change: 1 addition & 0 deletions lib/yocaml_git/yocaml_git.mli
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ val execute
-> ctx:Mimic.ctx
-> ?author:string
-> ?email:string
-> ?comment:string
-> string
-> 'a Yocaml.Effect.t
-> ('a, [> `Msg of string ]) result Lwt.t

0 comments on commit 76b27c6

Please sign in to comment.