package plebeia
Module Plebeia.CommitSource
3 Version control
3 Version control
Source
type t = {parent : Commit_hash.t option;index : Index.t;(*Index of the Plebeia tree root node in storage_context.
If the commit is a dummy, field
*)indexis set toIndex.zero.hash : Commit_hash.t;(*Context hash
*)info : Index.t;(*Index of the Info.t in storage_conetxt.
*)
}Source
val compute_hash :
(module Plebeia__.Hashfunc_intf.S) ->
parent:Commit_hash.t option ->
Hash.Prefix.t ->
Commit_hash.tHash computation for a new commit entry
Source
val make :
(module Plebeia__.Hashfunc_intf.S) ->
parent:Commit_hash.t option ->
index:Index.t ->
info:Index.t ->
?hash_override:Commit_hash.t ->
Hash.Prefix.t ->
tMake a new commit entry.
If hash_override is set, hash of the new entry is overridden by it, instead of computing from parent and the given Hash.Prefix.t.