Backend.Commit_portable
A commit abstraction that is portable from different repos. Similar to Commit.Val
.
val encoding : t Data_encoding.t
encoding
is the data_encoding for t
.
type node_key = Hash.t
Type for node keys.
val node_key_encoding : node_key Data_encoding.t
node_key_encoding
is the data_encoding for node_key
.
type commit_key = Hash.t
Type for commit keys.
val commit_key_t : commit_key Type.t
val commit_key_encoding : commit_key Data_encoding.t
commit_key_encoding
is the data_encoding for commit_key
.
module Info = Schema.Info
The type for commit info.
val init : info:Info.t -> node:node_key -> parents:commit_key list -> t
init ~info ~node ~parents
returns a new commit.
val parents : t -> commit_key list
The commit parents.
val of_commit : Commit.value -> t