Add comprehensive uncommitted work checks before any polecat cleanup: - Check for uncommitted changes (modified/untracked files) - Check for stashes - Check for unpushed commits Affected commands: - gt polecat remove: now refuses if uncommitted work exists - gt rig shutdown: checks all polecats before shutdown - Witness cleanup: refuses to clean polecats with uncommitted work - gt spawn: warns if spawning to polecat with uncommitted work Safety model: - --force: bypasses uncommitted changes check only - --nuclear: bypasses ALL safety checks (will lose work) New git helpers: - StashCount(): count stashes in repo - UnpushedCommits(): count commits not pushed to upstream - CheckUncommittedWork(): comprehensive work status check 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 KiB
17 KiB