2

I use the version control system fossil. I'd like to view fossil diff's output side-by-side in Emacs. The output looks like this:

$ fossil diff
Index: test1.txt
==================================================================
--- test1.txt
+++ test1.txt
@@ -1,1 +1,1 @@
-Old text
+New text

Index: test2.txt
==================================================================
--- test2.txt
+++ test2.txt
@@ -1,1 +1,1 @@
-Old text 2
+New text 2

Is there a way to display this output side-by-side, perhaps with ediff?

  • @ChillarAnand Yes, it colors the text but it doesn't display it side-by-side. – Geier Sep 22 '15 at 12:21
  • Do you want to see the original files, or just the parts that are covered by the diff? – Gilles Sep 22 '15 at 20:38
  • @Gilles Only the parts covered by the fossil diff output. – Geier Sep 23 '15 at 6:58
3

You can try with the diffview package: https://github.com/emacsmirror/diffview

configuration

(require 'diffview)

execution

M-x diffview-current

Your Answer

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

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