During a coding session, there might be multiple active worktrees. If the user interrupts the session (Ctrl-C), these work trees become stale and must be cleaned up manually.
Think of a way to clean them up on interrupt, regardless if they contain uncommitted or unmerged changes. The user decided to interrupt, ie it is OK to loose these changes.
During a coding session, there might be multiple active worktrees. If the user interrupts the session (Ctrl-C), these work trees become stale and must be cleaned up manually.
Think of a way to clean them up on interrupt, regardless if they contain uncommitted or unmerged changes. The user decided to interrupt, ie it is OK to loose these changes.