Once in the Magit buffer, hit E, choose the diff and when they're displayed then switch to vertical mode with |.

So far so good.

However, this shows three panes, not two.

  1. How to show just current and last commit?
  2. How to make both document linked while scrolling? At the moment one of them can have collapsed headings while the other does not, and it's impossible to see.
  3. How to only show changes (not all document) like in Github, for instance, where it only shows changes and some lines before and after?

Thank you!

  • What do you mean by 'show current and last commit'? Also, are you aware that you can also diff with d d and e instead of E? (d d might be the answer to point 3, also you can expand Recent Commits with TAB and press e` on any of the commits. which might be the answer to point 1). Dec 1, 2022 at 20:17


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.