Skip to main content

delete_branch

Function delete_branch 

Source
pub fn delete_branch(repo_root: &Path, branch: &str) -> Result<(), PawError>
Expand description

Deletes a local git branch.

Uses git branch -D (force delete) because purge is a destructive operation and the user has already confirmed. Only call this for branches that git-paw created (tracked via WorktreeEntry::branch_created).