Steve Yegge
ca9d306ef0
feat(reset): implement core reset package for bd reset command
Phase 1 implementation of bd reset (GitHub #479):
- internal/reset/reset.go: Core reset logic with ResetOptions, ResetResult,
ImpactSummary structs. Handles daemon killing, backup, file removal,
git operations, and re-initialization.
- internal/reset/backup.go: CreateBackup() for timestamped .beads/ backups
with permission preservation.
- internal/reset/git.go: Git state detection and operations for --hard mode.
CheckGitState(), GitRemoveBeads(), GitCommitReset(), GitAddAndCommit().
- cmd/bd/doctor/gitignore.go: Add .beads-backup-*/ to gitignore template.
Code review fixes applied:
- Git rm now runs BEFORE file deletion (was backwards)
- Removed stderr output from core package (CLI-agnostic)
- IsDirty now checks only .beads/ changes, not entire repo
- GitCommitReset handles nothing to commit gracefully
2025-12-13 09:47:26 +11:00
..
2025-12-05 13:22:09 -08:00
2025-12-04 11:21:43 -08:00
2025-11-21 14:57:18 -05:00
2025-12-04 11:21:43 -08:00
2025-12-03 22:44:59 -08:00
2025-12-03 00:09:25 -08:00
2025-11-23 20:33:31 -08:00
2025-11-26 20:59:07 -08:00
2025-11-23 20:21:51 -08:00
2025-12-05 14:33:34 -08:00
2025-12-12 13:28:48 -08:00
2025-11-27 14:22:42 -08:00
2025-12-07 21:34:35 +11:00
2025-12-13 09:47:26 +11:00
2025-12-12 13:19:31 -08:00
2025-12-07 20:34:02 +11:00
2025-12-03 17:50:23 -08:00
2025-11-21 14:57:18 -05:00
2025-12-05 16:20:43 -08:00
2025-12-02 23:00:24 -08:00