Skip to main content

Module version_control

Module version_control 

Source
Expand description

Optional version-control layer for the Rust link-cli.

Mirrors the C# VersionControlDecorator in csharp/Foundation.Data.Doublets.Cli.Library/VersionControlDecorator.cs.

Sits above the TransactionsDecorator and adds time travel (checkout), branching (branch, switch_branch), and tagging (tag) over the transitions log. Optional — when not instantiated the underlying transactions decorator behaves identically (R17).

Structs§

BranchInfo
Metadata describing one branch in the version-control DAG.
VersionControlDecorator
Decorator that adds time travel, branching, and tagging over the transitions log produced by a TransactionsDecorator.

Constants§

DEFAULT_BRANCH_NAME
Default name of the initial branch (analogous to git’s main).