Skip to main content

GitBranchRenameMemStorageFn

Type Alias GitBranchRenameMemStorageFn 

Source
pub type GitBranchRenameMemStorageFn = fn(gitdir: &Path, old_leaf: &str, new_leaf: &str) -> Result<(), BackendError>;
Expand description

rename_mem dispatch for the git-branch backend: move the mem’s content branch refs/heads/<old> to refs/heads/<new> at the same tip (history preserved) and relocate the __MEMSTEAD:mems/<old>/ config blob to mems/<new>/, all in one ref-edit transaction. Refuses (no mutation) when the source branch is missing or the target branch already exists.