Files
beads/cmd/bd
Steve Yegge 5506486dc5 feat(import,sync): add --no-git-history flag to prevent spurious deletions
Fixes bd-0b2: The git history backfill mechanism was causing data loss
during JSONL filename migrations (beads.jsonl → issues.jsonl). When issues
existed in the old filename's git history, the backfill incorrectly treated
them as "deleted" and purged them from the database.

Changes:
- Add NoGitHistory field to importer.Options and ImportOptions structs
- Modify purgeDeletedIssues() to skip git history check when flag is set
- Add --no-git-history flag to bd import command
- Add --no-git-history flag to bd sync command
- Update purge_test.go to pass Options argument

Usage:
  bd import -i .beads/issues.jsonl --no-git-history
  bd sync --no-git-history

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 23:10:43 -08:00
..
2025-11-25 11:46:06 -08:00
2025-11-25 19:32:05 -08:00
2025-11-25 19:32:05 -08:00
2025-11-26 22:02:29 -08:00
2025-11-24 21:16:44 -08:00
2025-11-24 15:46:47 -08:00
2025-11-24 11:28:32 -08:00
2025-11-24 22:21:55 -08:00
2025-11-23 17:16:27 -08:00
2025-11-25 18:16:49 -08:00