0

Windows 10, Emacs 25.1. , Magit

I have xml file. And I remove 8 lines and add 2 lines.

Here result in SmartGit:

smartGit

As you can see it's very simple to understand the state of file: before change and after change. It's very convenient.

Now how this file look in Magit:

Magit

As you can see all changes are in ONE buffer. It's not very convenient.

The question is: Is it possible to show change in 2 buffers? One buffer to show content of file before change and another buffer to show file after change. Like in SmartGit.

Thanks

3
  • This question is addressed by my answer to your other question from yesterday.
    – tarsius
    Nov 1, 2017 at 13:26
  • This is a different question. Yesterday I ask for indent. Today I ask for 2 buffers. Nov 1, 2017 at 14:35
  • It is a different question indeed, but answering that other question involved answering this question even though you had not asked it yet. I said something to the effect of "Magit does not support showing two versions of a file in two separate buffers and marking the areas that changed between the two buffers/versions. However it does support Ediff, which does support that (it is its primary purpose). Press <kbd>e</kbd> to enter Ediff."
    – tarsius
    Nov 1, 2017 at 16:20

2 Answers 2

4

Magit does not support showing two versions of a file in two separate buffers and marking the areas that changed between the two buffers/versions. However it does support Ediff, which does support that (it is its primary purpose). Press e on a change in Magit to enter Ediff.

1

You can use Ediff to show you the two versions of the file side-by-side. Press e when your cursor is on the line of the file you want to view.

Your Answer

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

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