Skip to main content

save

Function save 

Source
pub fn save(obj_store: &GitObjectStore, save_dir: &Path) -> Result<()>
Expand description

Save current store state to a directory using atomic file replacement.

Persists:

  • Graph data: namespace Parquet files
  • Commit history: _commits.json
  • Branch refs: _refs.json

A write-ahead log (_wal.json) tracks the operation for crash recovery.