2

Many magit tutorials still online as of September 2015 (e.g. here, here, and here) are based on magit 1.x, and describe a diff workflow where the user marks a start commit with . and then moves point to the end commit and invokes diff with =. Using point and mark for this seems very nice in emacs, and other commands also operate on the marked commit.

Magit 2.x has many great new features but there's no longer a mark command, and I'm having trouble finding a good equivalent of this mark-and-diff workflow. From the log view you can type dr to diff a range, but then you have to type in both commit hashes or references. Is there some other way in magit 2.x that I have missed to mark-and-diff?

jbyler
  • 7,200
  • 3
  • 34
  • 42

1 Answers1

4

You can mark a region, and calling either magit-diff (dr) or magit-diff-dwim (dd) will compare the two commits at the bounds.

Kyle Meyer
  • 1,546
  • 9
  • 10