Skip to main content

GitBranchReadTreeFn

Type Alias GitBranchReadTreeFn 

Source
pub type GitBranchReadTreeFn = fn(gitdir: &Path, ref_name: &str) -> Result<Vec<(String, String)>, BackendError>;
Expand description

Read every .md blob at ref_name in gitdir, returning (relative_path, utf8_content) pairs. Skips .memstead/ engine-internal entries and non-blob nodes. Used by the pre-merge schema-validation pass Engine::pull and Engine::push run before they advance the branch pointer / push to the remote.