git - magit: how to diff the same file between two different commits on the same branch? -
how can diff between 2 commits of same file using magit?
directly form git 1 can this. don't know how within magit. magit-status seems d , d returns diff of whole repository. problematic me repository huge , causes magit (and in turn emacs) become unresponsive. there way ask magit restrict search 1 file repository?
i tried, in magit-status buffer : diff $start_commit..$end_commit -- path/to/file. works, output simple buffer without highlighting nor folding options...
one way go use vc suggested this related answer - in particular c-u c-x v =. however, return buffer without possibility (un)fold chunks.
Comments
Post a Comment