Fix bd sync critical issues from code review

- Fix dry-run to not mutate state (no export/clear dirty flags)
- Use os.Executable() for import to avoid path hijacking
- Add preflight checks for merge/rebase in progress
- Add upstream tracking validation with helpful hints
- Use CommandContext for all git operations (enable cancellation)
- Add chmod(0644) to exportToJSONL for consistency with export.go

All critical issues from Oracle review addressed.
This commit is contained in:
Steve Yegge
2025-10-16 12:43:26 -07:00
parent 6f60a318df
commit 669636c828
2 changed files with 436 additions and 341 deletions

File diff suppressed because one or more lines are too long