pub type GitBranchDiffFn = fn(gitdir: &Path, branch: &str, mem: &str, ref_a: &str, ref_b: &str, config: &DiffConfig) -> Result<Diff, BackendError>;Expand description
Engine::diff dispatch for git-branch mounts. Walks the two refs
inside the workspace’s mem-repo gitdir, produces a per-entity
crate::ops::Diff. Refs are arbitrary gix::rev_parse_single
inputs — branch names, commit SHAs, tag names. Resolves each
independently so cross-branch (cross-mem) diffs work uniformly.
branch is the mount’s declared branch; a bare HEAD token in
either ref re-anchors onto it.