Skip to content

feat: add --force/--all flag to git-ai notes migrate#1418

Merged
svarlamov merged 1 commit into
mainfrom
feat/notes-migrate-force-flag
May 22, 2026
Merged

feat: add --force/--all flag to git-ai notes migrate#1418
svarlamov merged 1 commit into
mainfrom
feat/notes-migrate-force-flag

Conversation

@svarlamov

@svarlamov svarlamov commented May 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds --force / --all flag to git-ai notes migrate that bypasses the local synced-cache filter
  • Enables re-uploading all notes when migrating to a new backend URL (e.g., switching from hostone to hosttwo)
  • Also handles the case where a user simply wants to force a full re-sync to the same backend
  • Adds unknown-option validation with helpful error message

Test plan

  • New unit test force_flag_bypasses_synced_cache_filter verifies entries are skipped without force and pass through with force
  • Existing tests continue to pass (migration_uploads_notes_and_caches_with_synced_1)
  • task lint and task fmt clean

🤖 Generated with Claude Code


Open in Devin Review

Allows re-uploading all notes even when they're already marked synced
in the local notes-db. This supports migrating to a new backend URL
where the notes need to be re-uploaded despite being cached locally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@svarlamov svarlamov merged commit 37dd5ed into main May 22, 2026
25 of 28 checks passed
@svarlamov svarlamov deleted the feat/notes-migrate-force-flag branch May 22, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant