Skip to main content

GitBranchBranchResetFn

Type Alias GitBranchBranchResetFn 

Source
pub type GitBranchBranchResetFn = fn(gitdir: &Path, branch: &str, target_sha: &str, expected_head: Option<&str>) -> Result<BranchResetOutcome, BackendError>;
Expand description

Engine::branch_reset dispatch for git-branch mounts. Returns the outcome on success; surfaces BackendError::Other carrying an in-band marker (UNKNOWN_REF:<raw> or PUSHED_COMMITS_PROTECTED:<sha,sha,...>) the engine layer un-marshals into typed EngineErrors.