Open a file in a git repo that is modified by two commits. Run magit-blame.

*author1 date1 commit1*
*author2 date2 commit2*
line 2

Focus on the first line, press Enter. A magit-revision buffer opens at commit1.

Go back to the main file, go to the next line. The magit-revision buffer now displays commit2.

How do I disable this behavior? I'd like the revision buffer to stay at commit1 until I explicitly ask it to switch - e.g. by pressing Enter on line2.

1 Answer 1


Customize variable magit-blame-goto-chunk-hook and remove the following function from the list: magit-blame-maybe-update-revision-buffer.

  • Note to mods: the question asker is me at the previous job, so the account is no longer active and cannot accept the answer. The question-answer pair stays for posterity.
    – Alexander
    Commented Nov 17, 2022 at 9:46

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.