Library
Module
Module type
Parameter
Class
Class type
module P9p : Protocol_9p.Client.S
include Datakit_S.CLIENT
type error = private [>
| `Already_exists
Attempt to create something that already exists
*)| `Does_not_exist
Attempt to access something that does not exist
*)| `Is_dir
Attempt to use a directory as a file
*)| `Not_dir
Attempt to use a non-directory as a directory
*)| `Not_file
Attempt to use a non-file as a file
*)| `Not_symlink
]
Attempt to use a non-symlink as a symlink
type 'a or_error = ('a, error) Result.result
module Tree : Datakit_S.READABLE_TREE with type 'a or_error := 'a or_error
A read-only tree of files, directories and symlinks.
module Commit : sig ... end
module Transaction : sig ... end
All changes to a branch are made in transactions. When a transaction is committed, it is merged with the current contents of the branch.
module Branch : sig ... end
remove_branch t name
removes the branch named name
(unlike Branch.remove
, this method doesn't require creating the branch directory first).
branch t name
is the branch named name
(which might not exist yet).
fetch t ~url ~branch
fetches the given remote branch and returns its head commit.