pub type GitBranchUpdateRefFn = fn(gitdir: &Path, ref_name: &str, sha: &str, previous: RefPrevious<'_>) -> Result<(), BackendError>;Expand description
Point ref_name at sha, under the precondition previous names.
A move that decided on an observed tip pins it with
RefPrevious::At (or RefPrevious::Absent for a ref it saw
missing), so a commit that lands between the decision and the move
makes the move fail instead of being dropped. RefPrevious::Any is
for a ref the engine derives and owns outright (the check-ledger
transport ref, re-derived from the workspace ledger before every
publish).