Skip to content

[feature] sp promote — graduate a scratch into the current repo #8

Description

@rwrife

Pitch: A throwaway sometimes turns out to matter. sp promote <id> graduates a scratch into the current repo — moves the file in and opens it — so the good ones escape the reaper.

Acceptance criteria

  • sp promote <id> [dest] moves the scratch out of the store into the current working dir (or dest)
  • Removes the scratch from the index once promoted (it's the repo's responsibility now)
  • Refuses to overwrite an existing file without --force
  • Opens the promoted file in $EDITOR after moving (unless --no-open)
  • Clear confirmation message showing the new path

Notes

  • This is the natural "oops, keep this" escape hatch. Pairs well with the future secret-tripwire check.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature / backlog item

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions