Skip to content

Add support for editing commit messages#15

Open
shonenada wants to merge 3 commits intom1guelpf:mainfrom
shonenada:feat/edit-msg
Open

Add support for editing commit messages#15
shonenada wants to merge 3 commits intom1guelpf:mainfrom
shonenada:feat/edit-msg

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