3

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?

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

1 Answer 1

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 and acknowledge you have read our privacy policy.

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