Skip to main content

GitBranchReadConfigAtRefFn

Type Alias GitBranchReadConfigAtRefFn 

Source
pub type GitBranchReadConfigAtRefFn = fn(gitdir: &Path, ref_name: &str, mem: &str) -> Result<Option<Vec<u8>>, BackendError>;
Expand description

fork_mem dispatch for the remote form: one mem’s config blob (mems/<mem>/config.json) from the __MEMSTEAD tree at ref_name, the remote-tracking ref a fetch just placed (refs/remotes/<remote>/__MEMSTEAD), never the local refs/heads/__MEMSTEAD. Ok(None) when the ref or the blob is absent. Read-only.