Is it possible to stage the current hunk or selected lines of the hunk in diff-mode?

For example, when in diff-mode, what command can I run to stage the current hunk?

  • This is a yes/no question. You probably should rewrite it to clarify what additional information you'd want to see in an answer.
    – Stefan
    Jun 20, 2020 at 13:26

1 Answer 1



But maybe diff-mode itself can.

  • Ah, I thought this is something magit would handle, when in diff-mode all the commands containing the word "stage" are from magit, so I assumed regular diff mode couldn't do this.
    – ideasman42
    Jun 20, 2020 at 21:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.