Skip to main content

snapshot_state

Function snapshot_state 

Source
pub fn snapshot_state(
    obj_store: &GitObjectStore,
    commits_table: &CommitsTable,
    refs_table: &RefsTable,
) -> Result<Snapshot, RemoteError>
Expand description

Serialize the current git state to a transportable Snapshot.

Purely in-memory — no file I/O. Namespaces are serialized to Parquet bytes in memory. Commits and refs use lightweight JSON serialization.