How can I get the diff between two commits of the same file using magit
?
Directly form git
one can do this. But I don't know how to do it from within magit
. From magit-status
it seems that d
and D
returns the diff of the whole repository. This is very problematic for me as the repository is huge and it causes magit
(and in turn emacs
) to become unresponsive. Is there a way to ask magit
to restrict the search to only one file from the repository?
I also tried, in the magit-status
buffer to do : diff $start_commit..$end_commit -- path/to/file
. This works, but the output is a simple buffer without any highlighting nor any folding options...