The Wayback Machine - http://web.archive.org/web/20220521064454/https://github.com/extrawurst/gitui/issues/1083
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

Cache commit message in case commit is aborted #1083

Open

stevejalim opened this issue Jan 19, 2022 · 3 comments
Open

Cache commit message in case commit is aborted #1083

stevejalim opened this issue Jan 19, 2022 · 3 comments
Labels
enhancement good first issue
Milestone

Comments

@stevejalim
Copy link

@stevejalim stevejalim commented Jan 19, 2022

Is your feature request related to a problem? Please describe.
When using pre-commit hooks, it's possible that a well-intentioned commit will be rejected by those hooks. If one has just written a long commit message (using the external editor or just the smaller in-GUI dialog) and the commit is aborted, the commit note is lost.

Describe the solution you'd like
It would be great if the commit message was cached/stashed somewhere to avoid rework in the case of commit failure.

Additional context
I'm personally using the pre-commit framework, but I think this stands for anyone using pre-commit hooks

@extrawurst
Copy link
Owner

@extrawurst extrawurst commented Jan 19, 2022

Can you link me that pre commit framework you were referring to? I am asking cause I recently looked into husky for #1019

@stevejalim
Copy link
Author

@stevejalim stevejalim commented Jan 19, 2022

Sure thing - it's https://pre-commit.com/ - and gitui does run the hooks, happily 😄

There's also Therapist which does a similar job

@extrawurst
Copy link
Owner

@extrawurst extrawurst commented Jan 19, 2022

Also see #937

@extrawurst extrawurst added this to the v0.21 milestone Jan 25, 2022
@extrawurst extrawurst added enhancement good first issue labels Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue
Projects
None yet
Development

No branches or pull requests

2 participants