Skip to main content

Module git_bridge

Module git_bridge 

Source
Expand description

Minimal Merkle-DAG for Q42 volume history (Phase 1 — §4.5 Option B).

DagNode (88 bytes, #[repr(C)]) is the atomic commit unit. Branches are stored as BRANCHES_CONTEXT quins keyed on q_hash(branch_name). Contestability forks create a new node with the FORK_DISPUTED flag.

The fast-export stream produced by generate_fast_export_stream now iterates real DagNodes rather than returning a hardcoded stub.

Structs§

DagNode
88-byte Merkle-DAG commit node.
DagStore
In-memory DAG node store. Persisted to dag_root_offset/dag_root_length in the Q42 v3 volume header.

Constants§

BRANCHES_CONTEXT
Named-graph context for branch pointer quins.
FORK_DISPUTED
Node flag: this node was created via a contestability fork.
GENESIS
Node flag: genesis node (no parent).
MERGE_SECONDARY
Node flag: secondary-parent back-link in a merge commit.

Functions§

generate_fast_export_stream
Generate a git fast-export compatible text stream from the DAG store.
generate_fast_export_stream_for_project
Convenience wrapper: generate fast-export from a bare project ID string. Creates an empty store and produces the legacy stream (backward-compatible shim).
quins_merkle
Compute the SHA-256 Merkle root over a sorted slice of NQuins.