Skip to content

feat: add rollback plan generator script#10

Open
bupd wants to merge 2 commits into
mainfrom
nightshift/rollback-plan
Open

feat: add rollback plan generator script#10
bupd wants to merge 2 commits into
mainfrom
nightshift/rollback-plan

Conversation

@bupd
Copy link
Copy Markdown
Owner

@bupd bupd commented May 2, 2026

Summary

  • Adds scripts/rollback-plan.sh that analyzes git changes and generates structured rollback plans
  • Handles uncommitted (staged/unstaged), untracked, and committed changes
  • Outputs exact git revert, git restore, and git reset commands for safe rollback
  • Accepts optional repo path and commit range arguments

Test plan

  • Run rollback-plan.sh in a repo with uncommitted changes
  • Run rollback-plan.sh . HEAD~3..HEAD to verify commit range analysis
  • Verify generated commands are correct and safe to execute

Nightshift-Task: rollback-plan
Nightshift-Ref: https://github.com/marcus/nightshift

🤖 Generated with Claude Code


Automated by nightshift

bupd and others added 2 commits March 10, 2026 23:03
Add scripts/rollback-plan.sh that analyzes git changes in a repository
and generates a structured rollback plan with exact commands to revert
uncommitted changes, staged changes, and committed changes.

Nightshift-Task: rollback-plan
Nightshift-Ref: https://github.com/marcus/nightshift
Signed-off-by: Prasanth Baskar <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Prasanth Baskar <[email protected]>
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