Files
gastown/internal/cmd
Steve Brown 91641b01a0 fix(done): auto-detect cleanup status to prevent premature nuke (#361)
When polecats run 'gt done' without --cleanup-status, the witness may
prematurely nuke the worktree before the refinery can merge.

This fix auto-detects git state:
- uncommitted: has uncommitted changes
- stash: has stashed changes
- unpushed: branch not pushed or has unpushed commits
- clean: everything pushed

Uses BranchPushedToRemote() which properly handles polecat branches
that don't have upstream tracking (compares against origin/main).
On error, defaults to 'unpushed' to prevent accidental data loss.

Fixes: #342

Co-authored-by: mayor <mayor@gastown.local>
2026-01-11 18:47:49 -08:00
..
2026-01-08 12:36:54 -05:00
2026-01-09 02:22:20 +13:00
2026-01-09 02:22:20 +13:00
2026-01-08 12:36:54 -05:00
2026-01-08 22:10:40 +13:00
2026-01-08 12:36:54 -05:00
2026-01-08 12:36:54 -05:00
2026-01-11 00:20:09 -08:00