Skip to content

Cache commit message in case commit is aborted #1083

Closed
@stevejalim

Description

@stevejalim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions