Skip to content

Handle branch rename and migrate Breakpoints to new branch name#4

Merged
coveloper merged 2 commits intomainfrom
feature/rename
Mar 18, 2026
Merged

Handle branch rename and migrate Breakpoints to new branch name#4
coveloper merged 2 commits intomainfrom
feature/rename

Conversation

@coveloper
Copy link
Copy Markdown
Owner

No description provided.

Adds `xpt rename <old> <new>` to migrate a saved breakpoint snapshot
when a branch is renamed with `git branch -m`. Includes 7 new tests
covering the happy path, error cases (not found, already exists,
invalid names, same name), and content preservation.
Checks isSymlink() on both old and new paths before moving, consistent
with save() and restore(). The newURL symlink check intentionally runs
before fileExists() since fileExists follows symlinks — ensuring a
symlink at the destination is caught as a security violation rather
than reported as snapshotAlreadyExists.
@coveloper coveloper self-assigned this Mar 18, 2026
@coveloper coveloper merged commit 00a32fa into main Mar 18, 2026
1 check passed
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