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

Add support for editing commit messages #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shonenada
Copy link

@shonenada shonenada commented Dec 15, 2022

Add support for editing commit messages

This commit adds support for editing the commit message before committing.

The user is asked if they want to edit the commit message. If they answer
`edit`, the commit message is opened in the editor specified by the EDITOR
environment variable.

If the user answers `no`, the commit is aborted.

If the user answers `yes`, the commit is performed with the edited commit
message.

If the user answers anything else, the commit is performed with the
original commit message.
This commit adds support for the EDITOR env var.

If the EDITOR env var is set, it will be used as the editor to edit the commit
message. If it is not set, vi will be used.
This commit adds support for editing commit messages.

The user can now edit the commit message before it is committed.

This is useful for when the user wants to add more information to the commit
message.

Add a new feature

This is a new feature that does something.

It is a good feature.
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