Closed
Description
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