Skip to main content

migrate_worktree

Function migrate_worktree 

Source
pub fn migrate_worktree(repo: &Repository, worktree_name: &str) -> Result<()>
Expand description

Merge worktree_name’s real gh-stack file into canonical, then replace it with a symlink, leaving gh-stack.bak behind. Reachable only from doctor --fix — never automatically. See stack/gh_stack.rs’s module docs for the shared-canonical-file model.