-
-
Notifications
You must be signed in to change notification settings - Fork 607
allow interactive amend commit #222
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
Comments
Maybe you can give more details how git-cola does this? does it effectively rollback the last commit when u amend and then you basically do a fresh commit? |
With this, I'm wondering if a full roll-back feature might be good? I'm thinking that then you could roll-back to any commit, not just the first one as with amend(much like how the reword PR #312 works on the first commit and every other and so can replace amend -m which only works on the first). So this would need to checkout a certain commit, the user could make their changes, then once committed rebase the branch previously checked out on top of it. And of course, when rebasing, warn that history is about to be rewritten. It's definitely possible. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is implemented via #758 |
Commit learned to amend the last commit using ^a, which is awesome. Problem: it only works if you have staged changes to add (otherwise [c] commit is disabled).
It would be great if amend works similar to git-cola, where checking "amend" puts the changes from the last commit back into "staged" so it allows staging additional hunks, unstaging parts, and then editing the message.
Describe the solution you'd like
Add an "amend" toggle in the status view (maybe when "staged changes" are selected).
I can provide more info how it works in git-cola if needed.
The text was updated successfully, but these errors were encountered: