Skip to content

Feature request: support git commit --amend #33

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

Closed
alexanderkogan opened this issue Jan 27, 2023 · 3 comments
Closed

Feature request: support git commit --amend #33

alexanderkogan opened this issue Jan 27, 2023 · 3 comments

Comments

@alexanderkogan
Copy link

alexanderkogan commented Jan 27, 2023

Currently only git commit is supported.
Amending would be quite easy to show, I think.

When I find the time, I might try to implement it, but if anybody feels the urge, feel free to do it. (;
From my first foray through the code, it would be similar to the additional flags in reset.

@initialcommit-io
Copy link
Contributor

@alexanderkogan Yes this should be a quick one I'll try to get it implemented and released later today! I'll post back here when ready for you to test.

@initialcommit-io
Copy link
Contributor

@alexanderkogan Just implemented this in git-sim 0.1.7. You can now use the --amend option as a part of git-sim commit as follows:

$ git-sim commit --amend -m "Amended commit message"

Note that for now the amended commit message must be supplied using the -m flag.

Please upgrade to git-sim 0.1.7 by running:

$ pip install git-sim --upgrade

Then test it out and let me know if it works for you! =D

@initialcommit-io
Copy link
Contributor

@alexanderkogan Closing since this is implemented now. Feel free to reopen if any issues.

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

2 participants