Skip to content

Add draft saving for commits #6198

Open

Description

@acampove

Is your feature request related to a problem? Please describe.

I need to commit changes in file1

  • I stage file1 and write the commit message
  • Commit -> error, pre-commit hook failed due to a problem in file 2.
  • I unstage file1 and fix file2, then commit, I still see message from file1 commit. I remove that message an write message for file2 commit.
  • Stage again file1 and commit, have to write message all over again because it was not saved

Describe the solution you'd like

I would like a S binding that saves a draft of the message under a given name, so that it can be reused when I come back from file2 to continue with file1.

Describe alternatives you've considered

Deleting the file1 commit message, writing the file2 message and then writing the same file1 commit message again.

Additional context

Add any other context or screenshots about the feature request here.

Activity

  1. stefanhaller commented on Nov 9, 2026

    @stefanhaller
    Collaborator

    I would like a S binding that saves a draft of the message under a given name, so that it can be reused when I come back from file2 to continue with file1.

    This strikes me as an uncommon enough scenario that building a mechanism like this seems like overkill to me. Happy to hear other people's opinions though.

    There are several workarounds; one of them is to stage both file1 and file2, commit with the auto-saved message, and then run a custom patch to move the file2 change to its own commit before. That's probably what I would have done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions