Files
beads/cmd/bd
Steve Yegge 9de98cf1cb Add --clear-duplicate-external-refs flag to bd import
Fixes GH-234 by providing automatic resolution for duplicate external_ref
values instead of forcing manual JSONL editing.

Changes:
- Add ClearDuplicateExternalRefs option to importer.Options
- Modify validateNoDuplicateExternalRefs to clear duplicates when enabled
- Keep first occurrence, clear rest when flag is set
- Enhanced error message to suggest the flag
- Add comprehensive tests for the new behavior

Usage: bd import -i issues.jsonl --clear-duplicate-external-refs
Amp-Thread-ID: https://ampcode.com/threads/T-932dcf45-76f2-4994-9b5c-a6eb20a86036
Co-authored-by: Amp <amp@ampcode.com>
2025-11-06 13:01:44 -08:00
..
2025-10-31 22:39:53 -07:00
2025-11-05 14:25:48 -08:00
2025-11-05 13:56:12 -08:00
2025-11-05 13:56:12 -08:00
2025-10-31 22:39:53 -07:00
2025-11-05 13:56:12 -08:00
2025-11-02 21:25:40 -08:00
2025-11-02 17:09:39 -08:00