Skip to main content

detach_command

Function detach_command 

Source
pub fn detach_command(path: &Path) -> String
Expand description

How to hand a branch back, as a command the user can paste. Detaching is what the guards lead with because it works on every worktree: git worktree remove refuses on the main one, and moving the operation into the holding worktree only helps when that worktree is the only one in the way.