Problem
cleanup with force=true on a clean worktree is untested. The condition if force triggers --force even when clean. If refactored incorrectly, the behavior change would be undetected.
Solution
Add an integration test: create worktree, cleanup with force=true (no dirty files), verify success.
Problem
cleanupwithforce=trueon a clean worktree is untested. The conditionif forcetriggers--forceeven when clean. If refactored incorrectly, the behavior change would be undetected.Solution
Add an integration test: create worktree, cleanup with
force=true(no dirty files), verify success.