Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git undo/git redo #9

Open
jywarren opened this issue Feb 9, 2012 · 0 comments
Open

git undo/git redo #9

jywarren opened this issue Feb 9, 2012 · 0 comments

Comments

@jywarren
Copy link

jywarren commented Feb 9, 2012

Discuss: destructive vs. non-destructive.

Non-destructive undo:

  • it could refuse to undo if it would be destructive
  • it might ask “are you sure, y/n?” or require an “-f”
  • it might store states which would be destroyed so that they are recoverable, even if that means adding some heavier infrastructure
    • this could be a hack, like storing diffs or whatever you have to do, or a rewrite of part of git
    • or it could actually create a new state which clones the state you’re trying to get back to, but preserves revision history, like reverting a Wikipedia article. The latter would be pretty heavy but i dunno – just throwing options out there
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

No branches or pull requests

1 participant