Skip to main content

GitBranchExportToBytesFn

Type Alias GitBranchExportToBytesFn 

Source
pub type GitBranchExportToBytesFn = fn(gitdir: &Path, branch: &str, mem: &str, config: &MemConfig, workspace_root: Option<&Path>, workspace_schemas_dir: Option<&Path>, provenance_bytes: Option<&[u8]>, anchors_bytes: Option<&[u8]>) -> Result<MemExportBytes, BackendError>;
Expand description

Engine::export_mem_to_bytes dispatch for git-branch mounts.

Signature mirrors memstead_git_branch::ops::export::export_mem_from_branch_to_bytes. Symmetric to GitBranchExportFn: same inputs minus the output path, returns archive bytes plus metadata instead of writing to disk.